/* Login — split-screen brand/auth layout */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

/* ---- Brand pane ---- */

.auth-brand {
  position: relative;
  background:
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 2.75rem 1.75rem 2.25rem;
  overflow: hidden;
}

.auth-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ---- Entrance reveal (progressive enhancement: JS adds .will-animate
   before paint-relevant elements settle; without JS everything is
   visible at full opacity by default) ---- */

.auth-brand.will-animate .auth-brand__logo,
.auth-brand.will-animate .auth-brand__eyebrow,
.auth-brand.will-animate .auth-brand__title,
.auth-brand.will-animate .auth-brand__tagline,
.auth-brand.will-animate .auth-stats,
.auth-brand.will-animate .auth-brand__footer {
  opacity: 0;
}

.auth-brand.is-loaded .auth-brand__logo,
.auth-brand.is-loaded .auth-brand__eyebrow,
.auth-brand.is-loaded .auth-brand__title,
.auth-brand.is-loaded .auth-brand__tagline,
.auth-brand.is-loaded .auth-stats,
.auth-brand.is-loaded .auth-brand__footer {
  animation: auth-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-brand.is-loaded .auth-brand__logo { animation-delay: 0.03s; }
.auth-brand.is-loaded .auth-brand__eyebrow { animation-delay: 0.12s; }
.auth-brand.is-loaded .auth-brand__title { animation-delay: 0.19s; }
.auth-brand.is-loaded .auth-brand__tagline { animation-delay: 0.28s; }
.auth-brand.is-loaded .auth-stats { animation-delay: 0.37s; }
.auth-brand.is-loaded .auth-brand__footer { animation-delay: 0.46s; }

@keyframes auth-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-brand__inner {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin: 0 auto;
}

.auth-brand__logo {
  margin-bottom: 1.75rem;
}

.auth-brand__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8078;
  margin: 0 0 1.6rem;
}

.auth-brand__title {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 0.9rem;
  max-width: 24rem;
}

.auth-brand__tagline {
  color: #c3cee2;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 26rem;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.auth-stats__item {
  min-width: 0;
}

.auth-stats dt {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9bacc9;
  margin-bottom: 0.3rem;
}

.auth-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--white);
}

.auth-stats__note {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: #9bacc9;
  margin-top: 0.15rem;
}

.auth-brand__footer {
  font-size: 0.78rem;
  color: #8494b3;
  margin: 0;
}

/* ---- Form pane ---- */

.auth-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--white);
}

.auth-form-card {
  width: 100%;
  max-width: 22rem;
}

.auth-form__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pvi-red);
  margin: 0 0 0.5rem;
}

.auth-form__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.auth-form__subtitle {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
}

.auth-alert {
  background: #fdecec;
  border: 1px solid #f3b8b4;
  color: #93150e;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.auth-alert p {
  margin: 0;
}

.auth-alert p + p {
  margin-top: 0.3rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: var(--navy-800);
  background: var(--white);
}

.auth-submit {
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--pvi-red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.auth-submit:hover {
  background: var(--pvi-red-dark);
}

.auth-submit:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit {
    transition: none;
  }
}

@media (min-width: 900px) {
  .auth {
    grid-template-columns: 1.05fr 1fr;
  }

  .auth-brand {
    padding: 3.5rem 3.5rem;
    display: flex;
    align-items: center;
  }

  .auth-brand__inner {
    margin: 0;
  }

  .auth-form-pane {
    padding: 3rem;
  }
}
