/* Identidade da referência Collar: azul profundo, off-white, dourado e títulos serifados. */
body.portal-login-page {
  --text: #f2f0e9;
  --muted: #a6abb1;
  --border: rgba(192, 162, 105, 0.25);
  --gold: #be9b5c;
  --serif: Georgia, 'Times New Roman', serif;
  color-scheme: dark;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px clamp(24px, 5vw, 80px);
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(ellipse at 100% 55%, rgba(30, 56, 82, 0.6), transparent 60%),
    linear-gradient(125deg, #0b1727 0%, #10233a 70%, #142e49 100%);
}

body.portal-login-page::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 650px 800px at calc(100% + 290px) 72%,
    transparent 61%, rgba(190, 155, 92, 0.13) 61.1%, transparent 61.3%,
    rgba(190, 155, 92, 0.035) 61.4%, rgba(190, 155, 92, 0.035) 77%,
    transparent 77.2%);
}

.portal-login-shell {
  width: min(1200px, 100%);
  min-width: 0;
}

.portal-login-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--border);
}

.portal-login-masthead > span {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  width: 100%;
  min-width: 0;
  padding: clamp(48px, 7vh, 80px) 0 40px;
}

.portal-login-intro {
  display: grid;
  gap: 48px;
  min-width: 0;
}

.portal-login-logo {
  display: block;
  width: min(232px, 55%);
  height: auto;
}

.portal-login-copy h1 {
  max-width: 11ch;
  margin: 0 0 28px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(58px, 6.8vw, 88px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.portal-login-copy h1 em {
  display: block;
  color: var(--gold);
  font-weight: 400;
}

.portal-login-copy .muted {
  max-width: 39ch;
  font-size: 16px;
  line-height: 1.8;
}

.portal-login-areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.portal-login-areas li {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.portal-login-areas li:first-child {
  padding-left: 0;
}

.portal-login-areas li:last-child {
  padding-right: 0;
  border-right: 0;
}

.portal-login-areas strong {
  color: #d0b37f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-login-areas span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.portal-login-page svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login-card {
  --text: #0b1623;
  --muted: #58616b;
  --border: #d7d0c4;
  --success: #226341;
  --error: #a12b2b;
  color-scheme: light;
  display: grid;
  gap: 28px;
  min-width: 0;
  padding: clamp(30px, 3.4vw, 48px);
  border: 1px solid #c1a471;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  color: var(--text);
  background: #f1eee6;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.portal-login-header {
  display: grid;
  gap: 16px;
}

.portal-login-eyebrow {
  color: #80602a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portal-login-header h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.portal-login-header .muted {
  font-size: 12px;
  line-height: 1.7;
}

.portal-login-page .portal-login-form {
  gap: 20px;
  margin: 0;
}

.portal-login-form .field {
  min-width: 0;
  gap: 8px;
}

.portal-login-form .field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-login-form .portal-login-input {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fbf9f4;
}

.portal-login-input svg {
  width: 18px;
  height: 18px;
  color: #80602a;
}

.portal-login-page .portal-login-input input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.portal-login-input input::placeholder {
  color: #6c716f;
  opacity: 1;
}

.portal-login-input:focus-within {
  border-color: #95703b;
  box-shadow: 0 0 0 3px rgba(149, 112, 59, 0.18);
}

.portal-login-page .portal-login-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #fbf9f4 inset;
}

.portal-login-form .btn.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #081422;
  background: var(--gold);
  box-shadow: none;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-login-form .btn.primary:hover {
  background: #ccab71;
}

.portal-login-form .btn svg {
  width: 18px;
  height: 18px;
}

.portal-login-signup {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.portal-login-page .link {
  color: #76561f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-login-page .link:hover {
  color: #0b1623;
}

.portal-login-page .link:focus-visible,
.portal-login-page .btn:focus-visible {
  outline: 2px solid #95703b;
  outline-offset: 4px;
}

.portal-login-page .flash {
  margin: 0;
  background: #fbf9f4;
}

@media (max-width: 880px) {
  .portal-login-shell {
    width: min(560px, 100%);
  }

  .portal-login-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 40px 0 16px;
  }

  .portal-login-intro {
    gap: 32px;
  }

  .portal-login-copy h1 {
    max-width: none;
    font-size: clamp(54px, 10vw, 76px);
  }
}

@media (max-width: 480px) {
  body.portal-login-page {
    padding: 20px;
  }

  .portal-login-masthead {
    gap: 16px;
    padding: 8px 0 22px;
  }

  .portal-login-masthead > span {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .portal-login-copy h1 {
    font-size: clamp(46px, 12vw, 58px);
  }

  .portal-login-copy .muted {
    font-size: 14px;
  }

  .portal-login-areas li {
    padding: 0 10px;
  }

  .portal-login-areas strong {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .portal-login-card {
    padding: 28px 22px;
  }
}
