/*
 * Digital IA — tela de login
 * Etapa 2: composição visual da autenticação.
 */

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.auth-screen::before {
  width: 34rem;
  height: 34rem;
  top: -18rem;
  left: -8rem;
  border-radius: 50%;
  background: rgba(232, 182, 75, 0.08);
  filter: blur(8px);
}

.auth-screen::after {
  width: 42rem;
  height: 42rem;
  right: -20rem;
  bottom: -20rem;
  border-radius: 50%;
  background: rgba(46, 106, 173, 0.13);
  filter: blur(22px);
}

.auth-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  min-height: 100vh;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(17, 34, 56, 0.66), rgba(5, 11, 22, 0.10) 58%),
    radial-gradient(circle at 25% 50%, rgba(232, 182, 75, 0.08), transparent 26rem);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.auth-brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 212, 119, 0.55);
  border-radius: 0.8rem;
  color: var(--gold-light);
  background: linear-gradient(145deg, rgba(232, 182, 75, 0.22), rgba(232, 182, 75, 0.06));
  box-shadow: 0 10px 28px rgba(232, 182, 75, 0.11);
}

.auth-brand-mark svg {
  width: 1.35rem;
  height: 1.35rem;
}

.auth-showcase-content {
  max-width: 38rem;
  margin: auto 0;
  padding: 2rem 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.auth-showcase h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.auth-showcase h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.auth-showcase-copy {
  max-width: 33rem;
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 42rem;
  margin-top: 1.5rem;
}

.auth-benefit {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 20, 35, 0.52);
}

.auth-benefit strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.3;
}

.auth-benefit span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.auth-showcase-footer {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 4rem);
  background: rgba(5, 11, 22, 0.52);
}

.auth-form-card {
  width: min(100%, 27rem);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(160deg, rgba(20, 35, 56, 0.86), rgba(10, 19, 32, 0.96));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-form-card-header {
  margin-bottom: 1.25rem;
}

.auth-form-card-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.auth-form-card-header p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form-card .form-group {
  margin-bottom: 0.75rem;
}

.auth-form-card .form-group label {
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.auth-form-card .form-input {
  min-height: 3rem;
  padding: 0.78rem 0.9rem;
  border-color: rgba(137, 164, 198, 0.22);
  background: rgba(3, 9, 18, 0.62);
  font-size: 0.92rem;
}

.auth-form-card .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 182, 75, 0.12);
}

.auth-form-card .password-wrapper .form-input {
  padding-right: 3rem;
}

.auth-form-card .password-toggle {
  right: 0.7rem;
  color: var(--text-muted);
}

.auth-form-card .password-toggle:hover {
  color: var(--gold-light);
}

.auth-form-options {
  display: flex;
  justify-content: flex-end;
  margin: 0.25rem 0 1rem;
}

.auth-form-options a,
.auth-switch a {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-form-options a:hover,
.auth-switch a:hover {
  color: var(--text);
}

.auth-submit {
  width: 100%;
  min-height: 3.1rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(232, 182, 75, 0.15);
}

.auth-switch {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.auth-message {
  min-height: 0;
  margin-top: 0.5rem;
}

.auth-legal {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: center;
}

.auth-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-page.auth-standalone {
  min-height: 100vh;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

@media (max-width: 920px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: auto;
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 0;
    border-right: 0;
  }

  .auth-showcase-content {
    margin: 3.5rem auto 0;
    padding: 0 0 2rem;
    text-align: center;
  }

  .auth-showcase h1 {
    max-width: 15ch;
    margin-inline: auto;
  }

  .auth-showcase-copy {
    margin-inline: auto;
  }

  .auth-benefits {
    margin-inline: auto;
  }

  .auth-showcase-footer {
    display: none;
  }

  .auth-form-panel {
    align-items: flex-start;
    padding: 0 clamp(1.25rem, 5vw, 3rem) 2.5rem;
  }
}

@media (max-width: 560px) {
  .auth-showcase-content {
    margin-top: 1.5rem;
  }

  .auth-showcase h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .auth-showcase-copy {
    font-size: 0.92rem;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .auth-form-card {
    padding: 1.4rem;
    border-radius: var(--radius);
  }
}

.auth-form-card .password-toggle .eye-closed {
  display: none;
}

.auth-form-card .password-toggle.is-visible .eye-open {
  display: none;
}

.auth-form-card .password-toggle.is-visible .eye-closed {
  display: block;
}
