/* Portal de acesso. Regras isoladas das telas internas da plataforma. */
.portal-shell {
  --portal-ink: #192238;
  --portal-muted: #626f83;
  --portal-line: #e1e5ee;
  --portal-violet: #6252d8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  padding: 30px clamp(24px, 5vw, 96px) 24px;
  background: radial-gradient(ellipse at 4% 40%, #6252d819, transparent 55%), #0c1223;
  color: #f4f5fb;
  overflow: hidden;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
.portal-shell::before, .portal-shell::after { display: none; }
.portal-shell svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.portal-shell a { text-decoration: none; }
.portal-shell a:hover { text-decoration: underline; text-underline-offset: 4px; }
.portal-shell a:focus-visible, .portal-shell button:focus-visible {
  outline: 3px solid #afa5ff;
  outline-offset: 4px;
}
.portal-topbar, .portal-footer { width: min(1280px, 100%); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.portal-topbar { min-height: 54px; }
.portal-brand { color: #f4f5fb; gap: 11px; }
.portal-brand .brand-mark { width: 42px; height: 46px; margin: 0; background: none; border-radius: 0; box-shadow: none; }
.portal-brand .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.portal-brand strong { font-size: 24px; letter-spacing: -.8px; line-height: 1.2; }
.portal-brand strong span { color: #afa5ff; font-size: 14px; font-weight: 500; }
.portal-brand small { color: #a8b3ca; font-size: 11px; margin-top: 4px; }
.portal-site-link { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #c5ccdd; font-size: 13px; }
.portal-site-link svg { width: 16px; height: 16px; }
.portal-layout { width: min(1200px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(40px, 7vw, 112px); align-items: center; margin: 44px auto; flex: 1; }
.portal-intro { padding: 24px 0; }
.portal-eyebrow { display: flex; align-items: center; gap: 10px; color: #c1b9f3; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; line-height: 1.6; }
.portal-eyebrow>span { width: 25px; height: 1px; background: #afa5ff; flex-shrink: 0; }
.portal-intro h2 { margin: 25px 0 23px; font-size: clamp(42px, 4.4vw, 67px); font-weight: 550; letter-spacing: -.045em; line-height: 1.08; }
.portal-intro h2>span { color: #afa5ff; }
.portal-description { margin: 0; max-width: 420px; color: #b4bed3; font-size: 16px; line-height: 1.8; }
.portal-features { display: grid; gap: 25px; margin-top: 42px; max-width: 445px; }
.portal-feature { display: flex; align-items: flex-start; gap: 15px; }
.portal-feature-icon { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; background: #ffffff05; border: 1px solid #ffffff16; border-radius: 10px; color: #c1b9f3; }
.portal-feature h3 { font-size: 14px; font-weight: 600; margin: 0 0 5px; color: #f0f2f9; }
.portal-feature p { margin: 0; color: #a8b3ca; font-size: 13px; line-height: 1.7; }
.portal-principle { display: flex; align-items: center; gap: 12px; margin-top: 44px; font-size: 12px; color: #a8b3ca; }
.portal-principle-line { width: 30px; height: 1px; background: #6252d8; }
.portal-shell .portal-access { width: 100%; padding: 36px 36px 26px; border: 1px solid #ffffffa6; border-radius: 17px; background: #fff; color: var(--portal-ink); box-shadow: 0 24px 80px #00000030; }
.portal-card-heading { display: flex; align-items: center; gap: 10px; color: var(--portal-muted); }
.portal-access-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #f1effb; color: var(--portal-violet); border-radius: 8px; }
.portal-access-icon svg { width: 16px; height: 16px; }
.portal-card-heading small { font-size: 12px; font-weight: 600; }
.portal-shell .portal-badge,
#loginView.portal-shell[data-portal="client"] .portal-badge,
#loginView.portal-shell[data-portal="admin"] .portal-badge { display: block; width: fit-content; padding: 0; margin: 24px 0 10px; background: none; border: 0; border-radius: 0; color: var(--portal-violet); font-size: 9px; letter-spacing: 1.4px; font-weight: 700; }
.portal-shell .portal-access h1 { margin: 0 0 12px; color: var(--portal-ink); font-size: 31px; letter-spacing: -.035em; font-weight: 600; line-height: 1.15; }
.portal-shell .portal-access>p { color: var(--portal-muted); font-size: 13px; line-height: 1.75; margin: 0 0 26px; overflow-wrap: anywhere; }
.portal-shell .portal-access form { gap: 18px; }
.portal-shell .portal-access label { color: #303b50; font-size: 12px; font-weight: 600; gap: 8px; }
.portal-shell .portal-access input { min-width: 0; height: 49px; background: #fbfcfe; border: 1px solid #d9deea; border-radius: 7px; padding: 12px 13px; color: var(--portal-ink); font-size: 14px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.portal-shell .portal-access input::placeholder { color: #626f83; opacity: 1; }
.portal-shell .portal-access input:focus { border-color: var(--portal-violet); background: #fff; box-shadow: 0 0 0 3px #6252d81a; outline: none; }
.portal-shell .portal-access .field-help { margin-top: 0; color: var(--portal-muted); font-size: 11px; font-weight: 400; }
.portal-shell .portal-access .password-wrap input { padding-right: 90px; }
.portal-shell .password-toggle { color: var(--portal-violet); min-height: 40px; font-weight: 600; }
.portal-shell .password-toggle:hover { background: #f0edff; }
.portal-shell .portal-access .primary { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 49px; padding: 13px 18px; border-radius: 7px; background: var(--portal-violet); color: #fff; box-shadow: 0 4px 15px #6252d819; font-size: 13px; font-weight: 600; transition: background .15s; }
.portal-shell .portal-access .primary:hover { filter: none; background: #5041bd; transform: none; }
.portal-shell .login-submit svg { width: 17px; height: 17px; }
.portal-shell .link-button { color: var(--portal-violet); min-height: 36px; font-size: 12px; font-weight: 600; margin-top: -7px; }
.portal-shell .link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.portal-shell .auth-tabs { border-color: var(--portal-line); background: #f5f6fa; margin: 0 0 22px; }
.portal-shell .auth-tabs button { color: var(--portal-muted); font-size: 12px; font-weight: 600; }
.portal-shell .auth-tabs button.active { background: #fff; color: var(--portal-violet); box-shadow: 0 1px 5px #1922380a; }
.portal-support { padding-top: 20px; margin-top: 18px; border-top: 1px solid var(--portal-line); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.portal-shell .portal-support p { color: var(--portal-muted); font-size: 11px; margin: 0; }
.portal-support a { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; color: var(--portal-violet); font-size: 12px; font-weight: 600; }
.portal-support svg { width: 13px; height: 13px; }
.portal-footer { padding-top: 22px; border-top: 1px solid #ffffff12; color: #a8b3ca; font-size: 11px; }
.portal-footer a { min-height: 30px; display: flex; align-items: center; color: #b4bed3; }
.portal-secondary { justify-content: center; align-items: center; padding-block: 48px; }
.portal-secondary .portal-access { max-width: 460px; }
.portal-secondary .brand { margin-bottom: 30px; }
.portal-secondary .brand strong { color: var(--portal-ink); }
.portal-secondary .brand small { color: var(--portal-muted); }
.portal-secondary .brand-mark { background: none; box-shadow: none; }
.portal-secondary .portal-access form p { color: var(--portal-muted); margin: 0; font-size: 12px; line-height: 1.7; }
.portal-secondary .back-site { color: var(--portal-violet); min-height: 44px; display: flex; justify-content: center; align-items: center; margin-top: 18px; font-size: 12px; }
@media (min-width: 1550px) { .portal-layout { gap: 140px; } }
@media (max-width: 1000px) {
  .portal-shell { padding-inline: 32px; }
  .portal-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 36px; }
  .portal-eyebrow { font-size: 9px; letter-spacing: 1px; }
  .portal-intro h2 { font-size: 44px; }
  .portal-description { font-size: 14px; }
  .portal-shell .portal-access { padding: 30px 28px 22px; }
  .portal-shell .portal-access h1 { font-size: 28px; }
}
@media (max-width: 760px) {
  .portal-shell { padding: 20px 20px 22px; background: linear-gradient(#0c1223 0 210px, #f5f6fa 210px); }
  .portal-topbar { min-height: 48px; }
  .portal-brand strong { font-size: 22px; }
  .portal-brand .brand-mark { width: 34px; height: 38px; }
  .portal-brand small { font-size: 10px; }
  .portal-site-link { font-size: 12px; gap: 8px; }
  .portal-layout { display: block; width: min(470px, 100%); margin: 30px auto; flex: none; }
  .portal-intro { display: none; }
  .portal-shell .portal-access { padding: 28px 24px 22px; box-shadow: 0 10px 35px #1922380f; border-color: #e1e5ee; }
  .portal-shell .portal-access input { font-size: 16px; }
  .portal-footer { width: min(470px, 100%); border-color: #e1e5ee; color: #626f83; margin-top: auto; align-items: flex-start; gap: 12px; }
  .portal-footer a { color: #5041bd; min-height: 0; }
  .portal-secondary { background: #f5f6fa; padding-block: 32px; }
}
@media (max-width: 380px) {
  .portal-shell { padding-inline: 14px; }
  .portal-shell .portal-access { padding-inline: 20px; }
  .portal-shell .portal-access h1 { font-size: 25px; }
  .portal-footer { flex-direction: column; }
  .portal-brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-shell *, .portal-shell *::before, .portal-shell *::after { transition: none !important; animation: none !important; }
}
