/* ── Auth pages shared layout ───────────────────────────────── */
:root {
    --navy:      #3B0764;
    --navy-card: #2D0050;
    --cyan:      #8B5CF6;
    --cyan-dim:  #7C3AED;
    --white:     #F0F4FF;
    --muted:     #C4AEDE;
    --border:    rgba(139,92,246,.3);
    --glow:      0 0 30px rgba(139,92,246,.35);
    --font-head: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --radius:    10px;
    --transition:.25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: #F5F7FA; min-height: 100vh; display: flex; }
a { text-decoration: none; }

/* ── Split layout ────────────────────────────────────────────── */
.auth-split { display: grid; grid-template-columns: 40% 60%; min-height: 100vh; }

/* Left panel */
.auth-panel { background: var(--navy); padding: 60px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-panel::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%); pointer-events: none; }
.auth-panel::after  { content: ''; position: absolute; bottom: -60px; left: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(123,47,190,.12), transparent 70%); pointer-events: none; }
.auth-panel__logo { font-family: var(--font-head); font-size: 22px; color: var(--white); font-weight: 700; }
.auth-panel__logo span { color: var(--cyan); }
.auth-panel__content { position: relative; z-index: 1; }
.auth-panel__title { font-family: var(--font-head); font-size: clamp(28px, 3vw, 38px); color: var(--white); line-height: 1.25; margin-bottom: 16px; }
.auth-panel__title em { font-style: normal; color: var(--cyan); }
.auth-panel__quote { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* CV Mockup in left panel */
.auth-mockup { margin-top: 40px; background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.auth-mockup__bar { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; margin-bottom: 7px; }
.auth-mockup__bar--cyan { background: rgba(139,92,246,.35); width: 55%; }
.auth-mockup__bar--w80 { width: 80%; }
.auth-mockup__bar--w60 { width: 60%; }
.auth-mockup__bar--w70 { width: 70%; }
.auth-mockup__header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.auth-mockup__avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), #4F46E5); flex-shrink: 0; }
.auth-panel__features { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.auth-panel__feature { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.auth-panel__feature::before { content: '✓'; color: var(--cyan); font-weight: 700; font-size: 12px; }

/* Right panel */
.auth-form-panel { background: #fff; display: flex; align-items: center; justify-content: center; padding: 60px 48px; }
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-form-inner h2 { font-family: var(--font-head); font-size: 28px; color: #0A0F1E; margin-bottom: 6px; }
.auth-form-inner .auth-sub { font-size: 14px; color: #64748B; margin-bottom: 32px; }
.auth-form-inner .auth-sub a { color: var(--cyan-dim); font-weight: 600; }

/* Form inputs */
.auth-form .form-group { margin-bottom: 20px; }
.auth-form .form-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.auth-form .form-control { width: 100%; border: none; border-bottom: 2px solid #E5E7EB; background: transparent; padding: 10px 0; font-size: 15px; font-family: var(--font-body); color: #111827; outline: none; transition: border-color var(--transition); }
.auth-form .form-control:focus { border-bottom-color: var(--cyan-dim); }
.auth-form .form-control.is-invalid { border-bottom-color: #EF4444; }
.auth-form .form-control::placeholder { color: #9CA3AF; }
.form-error { font-size: 12px; color: #EF4444; margin-top: 4px; display: block; }

/* Input wrapper (for show/hide password) */
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 36px; }
.toggle-pass { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; color: #9CA3AF; padding: 4px; }

/* Remember me + forgot */
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.auth-check input[type=checkbox] { accent-color: var(--cyan-dim); }
.auth-forgot { font-size: 13px; color: var(--cyan-dim); font-weight: 500; }
.auth-forgot:hover { text-decoration: underline; }

/* Submit button */
.auth-submit { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--cyan), var(--cyan-dim)); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; font-family: var(--font-body); cursor: pointer; transition: var(--transition); }
.auth-submit:hover { box-shadow: 0 4px 20px rgba(139,92,246,.4); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Flash */
.auth-flash { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.auth-flash--success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.auth-flash--error   { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }
.auth-flash--info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }

/* Divider */
.auth-divider { text-align: center; color: #9CA3AF; font-size: 13px; margin: 20px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #E5E7EB; }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* Password strength */
.password-strength { margin-top: 6px; }
.strength-bar { height: 3px; border-radius: 2px; background: #E5E7EB; margin-bottom: 4px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; width: 0; transition: width .3s ease, background .3s ease; }
.strength-fill--weak   { background: #EF4444; }
.strength-fill--fair   { background: #F59E0B; }
.strength-fill--good   { background: #3B82F6; }
.strength-fill--strong { background: #22C55E; }
.strength-text { font-size: 11px; color: #9CA3AF; }

/* Responsive */
@media (max-width: 768px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-panel { display: none; }
    .auth-form-panel { padding: 40px 24px; align-items: flex-start; padding-top: 60px; }
    .auth-form-inner { max-width: 100%; }
}
