/* ============================================================
   MailFlow — Auth Pages CSS
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

/* ── Left Panel ──────────────────────────────────────────────── */
.auth-left {
  background: linear-gradient(135deg, #0F0C29 0%, #302B63 50%, #24243e 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 60px 48px; position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(108,99,255,.4) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(78,205,196,.2) 0%, transparent 50%);
}
.auth-left-content { position: relative; z-index: 1; max-width: 420px; }
.auth-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.auth-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-primary); display: flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 900;
}
.auth-logo-text { font-size: 26px; font-weight: 800; color: #fff; }
.auth-logo-text span { color: var(--secondary); }
.auth-left h2 { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 16px; }
.auth-left h2 .grad-text {
  background: var(--grad-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-left p { font-size: 16px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 40px; }
.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature { display: flex; align-items: center; gap: 14px; }
.auth-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.auth-feature-text strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.auth-feature-text span   { font-size: 13px; color: rgba(255,255,255,.55); }

/* ── Right Panel ─────────────────────────────────────────────── */
.auth-right {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 48px 40px; overflow-y: auto;
}
.auth-card {
  width: 100%; max-width: 440px;
}
.auth-card-header { margin-bottom: 32px; }
.auth-card-header h1 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-card-header p  { font-size: 15px; color: var(--muted); }

/* ── Form elements ───────────────────────────────────────────── */
.input-group { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--muted); pointer-events: none;
}
.input-group .form-control { padding-left: 44px; }
.password-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--muted); padding: 0;
}
.password-toggle:hover { color: var(--primary); }

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

/* ── Checkbox ────────────────────────────────────────────────── */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; border: 2px solid var(--border);
  border-radius: 4px; cursor: pointer; accent-color: var(--primary);
  flex-shrink: 0; margin-top: 2px;
}
.checkbox-group label { font-size: 14px; color: var(--text-light); cursor: pointer; line-height: 1.5; }

/* ── 2FA Code Input ──────────────────────────────────────────── */
.otp-group {
  display: flex; gap: 10px; justify-content: center; margin: 24px 0;
}
.otp-input {
  width: 52px; height: 60px; text-align: center;
  font-size: 24px; font-weight: 700; color: var(--text);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.otp-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

/* ── Link row ────────────────────────────────────────────────── */
.auth-link-row {
  text-align: center; font-size: 14px; color: var(--muted);
  margin-top: 20px;
}
.auth-link-row a { color: var(--primary); font-weight: 600; }

/* ── Password strength ───────────────────────────────────────── */
.pw-strength { margin-top: 6px; }
.pw-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.pw-bar {
  height: 3px; flex: 1; border-radius: 2px;
  background: var(--border); transition: background .3s;
}
.pw-bar.filled-weak   { background: #FC8181; }
.pw-bar.filled-fair   { background: #F6AD55; }
.pw-bar.filled-good   { background: #68D391; }
.pw-bar.filled-strong { background: #48BB78; }
.pw-label { font-size: 11px; color: var(--muted); }

/* ── Back link ───────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--muted); margin-bottom: 24px;
  transition: color .2s;
}
.back-link:hover { color: var(--primary); }

/* ── Verify / Success screens ────────────────────────────────── */
.auth-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-cool); display: flex;
  align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 24px; color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .auth-right { padding: 32px 20px; }
  .otp-input  { width: 44px; height: 52px; font-size: 20px; }
}
