/* =====================================================
   FITTRACK — Auth Pages (Login & Register)
   ===================================================== */

.auth-body {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
  overflow: hidden;
}

/* ── Left panel (brand) ── */
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  background: linear-gradient(160deg, #0d1a30 0%, #0a0d14 100%);
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--primary-gl) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--secondary-gl) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.brand-icon {
  width: 46px; height: 46px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -.5px;
}

.brand-headline {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--txt);
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.brand-headline span { color: var(--primary); }

.brand-sub {
  font-size: 1rem;
  color: var(--txt-sub);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 48px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--txt-sub);
}
.brand-feature-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-gl);
  display: grid; place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Right panel (form) ── */
.auth-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.auth-header { margin-bottom: 32px; }
.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.auth-subtitle { font-size: .9rem; color: var(--txt-sub); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--txt-muted);
  font-size: .8rem;
  margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: .88rem;
  color: var(--txt-sub);
}
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Alert box */
.auth-alert {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 500;
  display: none;
}
.auth-alert.show { display: block; }
.auth-alert.alert-error {
  background: rgba(255,77,109,.1);
  border: 1px solid rgba(255,77,109,.35);
  color: #ff8099;
}
.auth-alert.alert-success {
  background: rgba(46,213,115,.1);
  border: 1px solid rgba(46,213,115,.35);
  color: #5ef0a0;
}

/* Password strength */
.pw-strength { margin-top: -8px; }
.pw-strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 5px;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width .3s, background .3s;
}
.pw-strength-fill.s1 { width: 25%; background: var(--danger); }
.pw-strength-fill.s2 { width: 50%; background: var(--warning); }
.pw-strength-fill.s3 { width: 75%; background: var(--blue); }
.pw-strength-fill.s4 { width: 100%; background: var(--success); }
.pw-strength-label { font-size: .75rem; color: var(--txt-muted); }
.pw-strength-label.s1 { color: var(--danger); }
.pw-strength-label.s2 { color: var(--warning); }
.pw-strength-label.s3 { color: var(--blue); }
.pw-strength-label.s4 { color: var(--success); }

/* Mobile — stack vertically */
@media (max-width: 900px) {
  .auth-body { flex-direction: column; overflow-y: auto; }
  .auth-left {
    padding: 40px 32px;
    min-height: auto;
    flex: none;
  }
  .auth-left::before, .auth-left::after { display: none; }
  .brand-headline { font-size: 1.7rem; }
  .auth-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 40px 32px;
  }
}
@media (max-width: 480px) {
  .auth-left { padding: 32px 20px; }
  .auth-right { padding: 32px 20px; }
  .brand-headline { font-size: 1.4rem; }
  .auth-title { font-size: 1.4rem; }
  .brand-features { display: none; }
}
