/* ==========================================================================
   Entrar / Cadastrar — área do cliente (guest)
   ========================================================================== */

.auth-page {
  --auth-radius: 0.875rem;
  --auth-accent: #7c5cff;
  --auth-accent-soft: #a78bfa;
  display: grid;
  gap: 1.5rem;
  width: 100%;
  max-width: min(1080px, 100%);
  margin: 0 auto;
  padding-bottom: 1rem;
}

@media (min-width: 900px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
  }
}

/* --- Painel lateral -------------------------------------------------------- */
.auth-aside {
  position: relative;
  overflow: hidden;
  border-radius: var(--auth-radius);
  border: 1px solid rgba(124, 92, 255, 0.22);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(59, 130, 246, 0.12), transparent 50%),
    linear-gradient(155deg, #1a1f32 0%, #0f121c 100%);
  min-height: 12rem;
}

.auth-aside__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 65%);
  pointer-events: none;
}

.auth-aside__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.auth-aside__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-aside__brand img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.auth-aside__brand strong {
  color: var(--auth-accent-soft);
  font-weight: 700;
}

.auth-aside__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth-aside__lead {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--conta-muted, #94a3b8);
  max-width: 28rem;
}

.auth-aside__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.auth-aside__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.auth-aside__list strong {
  color: #f1f5f9;
  font-weight: 600;
}

.auth-aside__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: var(--auth-accent-soft);
}

.auth-aside__note {
  margin: 1.5rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: var(--conta-muted, #94a3b8);
}

.auth-aside__note a {
  color: var(--auth-accent-soft);
  font-weight: 600;
  text-decoration: none;
}

.auth-aside__note a:hover {
  color: #e9d5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 899px) {
  .auth-aside__note {
    display: none;
  }
}

/* --- Coluna do formulário -------------------------------------------------- */
.auth-page__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.auth-card {
  position: relative;
  flex: 1;
  padding: clamp(1.35rem, 3.5vw, 2rem);
  border-radius: var(--auth-radius);
  border: 1px solid var(--conta-border, rgba(255, 255, 255, 0.08));
  background: var(--conta-surface, #141824);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(124, 92, 255, 0.05);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--auth-accent), #5b3df0, #3b82f6);
  opacity: 0.85;
}

.auth-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--auth-accent-soft);
}

.auth-card__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.auth-card__sub {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--conta-muted, #94a3b8);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.auth-alert svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.9;
}

.auth-form-section {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

.auth-form-section__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--conta-muted, #94a3b8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-page .conta-form {
  gap: 1rem;
}

.auth-page .conta-field input:not([type='checkbox']) {
  padding: 0.75rem 0.95rem;
  border-radius: 0.55rem;
  background: rgba(11, 13, 20, 0.85);
}

.auth-page .conta-field input::placeholder {
  color: #64748b;
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.auth-remember .conta-check {
  margin-top: 0;
}

.auth-trust {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.auth-trust svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.auth-card__foot {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.875rem;
  color: var(--conta-muted, #94a3b8);
}

.auth-card__foot a {
  color: var(--auth-accent-soft);
  font-weight: 600;
  text-decoration: none;
}

.auth-card__foot a:hover {
  color: #e9d5ff;
  text-decoration: underline;
}

.auth-page .conta-btn {
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.65rem;
}

.auth-forgot-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-accent-soft, #a78bfa);
  text-decoration: none;
}

.auth-forgot-link:hover {
  color: #e9d5ff;
  text-decoration: underline;
}

.auth-verify-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.auth-verify-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.auth-verify-step__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(124, 92, 255, 0.25);
  color: #ede9fe;
  flex-shrink: 0;
}

.auth-verify-resend {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.conta-check--marketing strong {
  color: #e2e8f0;
}

/* Cadastro — grid de campos */
@media (min-width: 768px) {
  .auth-page--register .auth-form--register {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(1rem, 2vw, 1.5rem);
    row-gap: 1rem;
  }

  .auth-page--register .auth-form--register > .auth-form-section,
  .auth-page--register .auth-form--register > .conta-field--register-steam,
  .auth-page--register .auth-form--register > .conta-field--password,
  .auth-page--register .auth-form--register > .conta-check,
  .auth-page--register .auth-form--register > .conta-btn,
  .auth-page--register .auth-form--register > .conta-field__error,
  .auth-page--register .auth-form--register > p.conta-field__error {
    grid-column: 1 / -1;
  }

  .auth-page--register .auth-form--register > .auth-form-section--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding: 0;
    border: none;
  }

  .auth-page--register .auth-form--register > .auth-form-section--grid .auth-form-section__title {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .auth-page--register .auth-form--register {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-page--register .auth-form--register > .conta-field--password {
    grid-column: 1 / -1;
  }
}

.auth-steam-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.auth-steam-hint svg {
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: #93c5fd;
}

/* Medidor de senha dentro do card refinado */
.auth-page .conta-password-live.is-visible,
.auth-page .conta-password-live.is-focused {
  max-height: 9rem;
  border-color: rgba(124, 92, 255, 0.2);
  background: rgba(11, 13, 20, 0.75);
}

.auth-page .conta-password-rules {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
