/* ============================================================
   auth.css — Login / Register Layout
   ============================================================ */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--grey-50);
}

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

/* ── Brand Panel (Left) ─────────────────────────────────────── */
.auth-panel--brand {
  background: linear-gradient(155deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  position: relative;
  overflow: hidden;
}

.brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(2rem, 5vw, 4rem);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: auto;
}
.brand-logo .logo-icon { font-size: 1.8rem; }

.brand-copy {
  margin: auto 0 var(--space-10);
}
.brand-copy h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.brand-copy h1 em {
  color: var(--blue-300);
  font-style: italic;
}
.brand-copy p {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 380px;
}

/* Stats row */
.brand-stats {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.brand-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-stats .stat strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.brand-stats .stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Feature list (register page) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: auto 0 var(--space-8);
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.feature-list .check {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--blue-300);
  font-weight: 700;
  flex-shrink: 0;
}

/* Background orbs */
.brand-bg-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .25;
}
.orb--1 {
  width: 400px; height: 400px;
  background: var(--blue-300);
  top: -120px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.orb--2 {
  width: 280px; height: 280px;
  background: #93c5fd;
  bottom: 40px; left: -80px;
  animation: float2 10s ease-in-out infinite;
}
.orb--3 {
  width: 160px; height: 160px;
  background: var(--blue-100);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 6s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, 30px) scale(1.06); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(15px, -25px) scale(1.04); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Form Panel (Right) ─────────────────────────────────────── */
.auth-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: var(--space-8) var(--space-5);
}

.form-inner {
  width: 100%;
  max-width: 420px;
  animation: fadeIn .4s var(--ease-smooth);
}

.form-header {
  margin-bottom: var(--space-8);
}
.form-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--grey-900);
  margin-bottom: var(--space-2);
}
.form-header p {
  color: var(--grey-500);
  font-size: .95rem;
}

.auth-form { animation: slideUp .3s var(--ease); }

.auth-switch {
  text-align: center;
  color: var(--grey-500);
  font-size: .9rem;
  margin-top: var(--space-5);
}
.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* ── Password Strength ──────────────────────────────────────── */
.password-strength { margin-top: 8px; }
.strength-bar      { height: 4px; background: var(--grey-200); border-radius: 4px; overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0%; border-radius: 4px; transition: all .3s; }
.strength-label    { display: block; margin-top: 5px; font-size: .78rem; color: var(--grey-500); }

/* Strength levels */
.strength-0 span { width: 0%;   background: transparent; }
.strength-1 span { width: 25%;  background: var(--danger); }
.strength-2 span { width: 50%;  background: var(--warning); }
.strength-3 span { width: 75%;  background: #84cc16; }
.strength-4 span { width: 100%; background: var(--success); }

/* Terms label */
.terms-label { align-items: flex-start !important; }
.terms-label .checkbox-custom { margin-top: 2px; }
.terms-label a { color: var(--accent); font-weight: 500; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-panel--brand { display: none; }
  .auth-panel--form {
    padding: var(--space-10) var(--space-5);
    min-height: 100vh;
  }
}
