/* =========================================
   Auth Pages – Fullscreen Design
   Uses --fs-* design tokens from style.css
   ========================================= */

/* ───────────────────────────────────────
   1. Fullscreen Background
   ─────────────────────────────────────── */
.modern-main.is-auth {
  max-width: none;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.is-auth {
  background: var(--fs-grad-hero);
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}

/* ───────────────────────────────────────
   2. Decorative Orbs
   ─────────────────────────────────────── */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
  pointer-events: none;
}
.auth-orb--1 {
  width: 450px;
  height: 450px;
  background: #22c55e;
  top: -120px;
  left: -100px;
}
.auth-orb--2 {
  width: 300px;
  height: 300px;
  background: #6ee7b7;
  bottom: -80px;
  right: -60px;
}
.auth-orb--3 {
  width: 180px;
  height: 180px;
  background: #34d399;
  top: 40%;
  right: 20%;
}

/* ───────────────────────────────────────
   3. Glassmorphism Card
   ─────────────────────────────────────── */
.auth-card {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--fs-radius-xl);
  box-shadow:
    0 20px 60px rgba(0,0,0,.1),
    0 0 0 1px rgba(255,255,255,.2);
  width: 100%;
  max-width: 460px;
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

/* ───────────────────────────────────────
   4. Card Header (Logo + Title)
   ─────────────────────────────────────── */
.auth-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-card-header img {
  margin-bottom: .75rem;
}
.auth-card-header h4 {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--fs-neutral-900);
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.auth-card-header p {
  color: var(--fs-neutral-500);
  font-size: .92rem;
  margin: 0;
}

/* ───────────────────────────────────────
   5. Form Styling Overrides
   ─────────────────────────────────────── */
.auth-card .form-control {
  border-radius: var(--fs-radius-md);
  border-color: var(--fs-neutral-200);
  background: rgba(255,255,255,.7);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-card .form-control:focus {
  border-color: var(--fs-green-400);
  box-shadow: 0 0 0 3px rgba(0,128,96,.1);
  background: #fff;
}
.auth-card .form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--fs-neutral-700);
}
.auth-card .form-check-label {
  color: var(--fs-neutral-600);
}
.auth-card .form-check-input:checked {
  background-color: var(--fs-green-600);
  border-color: var(--fs-green-600);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--fs-neutral-400);
  font-size: .8rem;
  margin: 1.25rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fs-neutral-200);
}

/* ───────────────────────────────────────
   6. Trust Mini-Bar
   ─────────────────────────────────────── */
.auth-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 2;
}
.auth-trust-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
}
.auth-trust-item i {
  font-size: .85rem;
}

/* ───────────────────────────────────────
   7. Footer & Navbar Overrides
   ─────────────────────────────────────── */
body:has(.is-auth) .site-footer {
  display: none;
}

/* ───────────────────────────────────────
   8. Responsive
   ─────────────────────────────────────── */
@media (max-width: 575.98px) {
  .is-auth {
    padding: 1.5rem .75rem;
    min-height: calc(100vh - 56px);
  }
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--fs-radius-lg);
  }
  .auth-card-header h4 {
    font-size: 1.2rem;
  }
  .auth-trust {
    gap: .75rem;
  }
  .auth-trust-item {
    font-size: .7rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .auth-orb {
    display: none;
  }
}
