/* ================================================================
   Auth Pages — Login
================================================================ */

body.sfl-auth {
  background:
    radial-gradient(circle at top left, rgba(200, 132, 58, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(200, 132, 58, 0.08), transparent 30%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 52%, #111111 100%);
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

/* ── Left Panel ───────────────────────────────────────────────── */
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 5vw, 56px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 50%),
    linear-gradient(135deg, rgba(200, 132, 58, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 18% 78%, rgba(200, 132, 58, 0.2), transparent 38%),
    #090909;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: auto -12% 12% auto;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 132, 58, 0.18), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.auth-visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(200, 132, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200, 132, 58, 0.12) 0%, transparent 50%);
}
.auth-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 132, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 132, 58, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}
.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.auth-logo {
  position: absolute;
  top: clamp(28px, 4vw, 42px);
  left: clamp(28px, 4vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2vw, 1.65rem);
  color: var(--white);
  z-index: 1;
}
.auth-logo span { color: var(--gold); }
.auth-logo sub {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(240, 240, 240, 0.62);
  font-family: var(--font-body);
  margin-top: 4px;
}
.auth-kicker,
.auth-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 132, 58, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 242, 207, 0.84);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.auth-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  color: var(--white);
  line-height: 0.98;
  margin-bottom: 18px;
  max-width: 8ch;
  text-wrap: balance;
}
.auth-tagline em { color: var(--gold); font-style: normal; }
.auth-desc {
  color: rgba(250, 250, 248, 0.76);
  font-size: 1rem;
  max-width: 430px;
  line-height: 1.82;
  margin-bottom: 28px;
}
.auth-visual-note {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  padding: 18px 20px;
  max-width: 460px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}
.auth-visual-note strong {
  color: var(--white);
  font-size: 0.98rem;
}
.auth-visual-note span {
  color: rgba(250, 250, 248, 0.66);
  line-height: 1.7;
  font-size: 0.88rem;
}
.auth-highlights {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 500px;
}
.auth-highlights li {
  position: relative;
  padding-left: 24px;
  color: rgba(250, 250, 248, 0.8);
  line-height: 1.65;
  font-size: 0.92rem;
}
.auth-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 205, 140, 0.96), rgba(200, 132, 58, 0.75));
  box-shadow: 0 0 18px rgba(200, 132, 58, 0.35);
  animation: authLightBlink 2.2s ease-in-out infinite;
}
.auth-highlights li:nth-child(2)::before { animation-delay: 0.28s; }
.auth-highlights li:nth-child(3)::before { animation-delay: 0.56s; }

/* ── Right Panel ──────────────────────────────────────────────── */
.auth-form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at top right, rgba(200, 132, 58, 0.1), transparent 28%),
    linear-gradient(160deg, rgba(255, 184, 0, 0.03) 0%, transparent 55%),
    var(--dark);
}
.auth-form-box {
  width: 100%;
  max-width: 460px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(11, 11, 11, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}
.auth-form-box h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  margin-bottom: 8px;
  color: var(--white);
}
.auth-form-box .auth-subtitle {
  color: rgba(235, 235, 235, 0.66);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 34ch;
}
.auth-form-box .form-group {
  margin-bottom: 16px;
}
.auth-form-box .form-control {
  min-height: 56px;
}
.auth-form-box .btn-block {
  width: 100%;
  margin-top: 6px;
}
.auth-form-box .form-control:focus {
  background: rgba(200, 132, 58, 0.05);
}
.auth-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(235, 235, 235, 0.64);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}
.auth-assurance-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(200, 132, 58, 0.4);
  animation: authLightBlink 1.8s ease-in-out infinite;
}

@keyframes authLightBlink {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.92);
    box-shadow: 0 0 10px rgba(200, 132, 58, 0.22);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(255, 184, 0, 0.45);
  }
}
.auth-links {
  margin-top: 24px;
}
.auth-footer-text {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 45vh;
    justify-content: flex-end;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .auth-tagline {
    max-width: none;
  }
}

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

  .auth-form-panel {
    padding: max(24px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  }

  .auth-form-box {
    max-width: none;
    border-radius: 24px;
    padding: 24px 20px;
  }

  .auth-form-kicker {
    margin-bottom: 16px;
  }

  .auth-assurance {
    border-radius: 18px;
  }
}

/* ── Layout balance pass ─────────────────────────────────────── */
.auth-page {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.auth-visual {
  padding: clamp(28px, 4vw, 44px);
}

.auth-visual-content {
  max-width: 500px;
}

.auth-kicker,
.auth-form-kicker {
  margin-bottom: 14px;
  padding: 7px 12px;
  font-size: 0.68rem;
}

.auth-tagline {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 13ch;
}

.auth-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.auth-visual-note {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.auth-highlights {
  gap: 10px;
}

.auth-highlights li {
  font-size: 0.88rem;
}

.auth-form-panel {
  padding: clamp(22px, 4vw, 40px);
}

.auth-form-box {
  max-width: 420px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 22px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.3);
}

.auth-form-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
}

.auth-form-box .auth-subtitle {
  font-size: 0.9rem;
  line-height: 1.68;
  margin-bottom: 22px;
}

.auth-form-box .form-control {
  min-height: 50px;
}

.auth-assurance {
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 0.78rem;
}

.auth-links,
.auth-footer-text {
  margin-top: 18px;
}

@media (max-width: 960px) {
  .auth-visual {
    min-height: 38vh;
  }
}

@media (max-width: 768px) {
  .auth-form-box {
    padding: 20px 18px;
    border-radius: 18px;
  }
}

/* ── Mobile repair pass ───────────────────────────────────────── */
@media (max-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .auth-page {
    display: block;
    min-height: 100dvh;
  }

  .auth-form-panel {
    min-height: 100dvh;
    min-height: 100svh;
    align-items: center;
    padding:
      max(20px, env(safe-area-inset-top))
      16px
      max(24px, env(safe-area-inset-bottom));
  }

  .auth-form-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .auth-form-kicker {
    margin-bottom: 14px;
  }

  .auth-form-box h2 {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    line-height: 1.05;
  }

  .auth-form-box .auth-subtitle {
    max-width: none;
    margin-bottom: 20px;
  }

  .auth-form-box .form-control {
    min-height: 52px;
  }

  .auth-assurance {
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .auth-form-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-form-box {
    padding: 20px 16px;
  }
}
