/* =====================================================
   AUTH PAGE STYLES — Asha Courses
   ===================================================== */

.auth-page body,
body.auth-page { overflow: hidden; height: 100vh; }

.auth-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── Left Panel ──────────────────────────────────── */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #3730A3 0%, #4F46E5 50%, #6366F1 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 56px;
  overflow: hidden;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(245,158,11,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.auth-left-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1;
  margin-bottom: auto;
}

.auth-left-content {
  z-index: 1;
  margin: auto 0;
  padding: 40px 0;
}

.auth-left-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.auth-left-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 36px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.auth-feature i {
  color: var(--primary-light);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* ─── Right Panel ─────────────────────────────────── */
.auth-right {
  width: 520px;
  flex-shrink: 0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-header { margin-bottom: 28px; }

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* ─── Auth Form ───────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.auth-forgot:hover { text-decoration: underline; color: var(--primary-dark); }

.mb-1 { margin-bottom: 4px; }

/* Toggle password button */
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}
.toggle-password:hover { color: var(--text); }

.input-icon-wrap .form-input {
  padding-right: 42px;
}

/* Password strength */
.password-strength-bar {
  height: 4px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}
.form-hint { font-size: 12px; margin-top: 4px; display: block; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Terms */
.auth-terms {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}
.auth-terms a {
  color: var(--primary-light);
}
.auth-terms a:hover { text-decoration: underline; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 32px 24px; }
  body.auth-page { overflow: auto; height: auto; }
  .auth-layout { height: auto; min-height: 100vh; }
}

@media (max-width: 480px) {
  .auth-right { padding: 24px 16px; }
}
