:root { --primary: #2563eb; --primary-dk: #1d4ed8; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #f8fafc; color: var(--ink); margin: 0; }

/* ── Split layout ── */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }

/* Brand panel */
.auth-brand {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(145deg, #0b1f3a 0%, #12335f 55%, #1d4ed8 130%);
    display: flex; align-items: center; padding: 56px 56px;
}
.auth-brand-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.auth-brand-glow-1 { width: 380px; height: 380px; background: #2563eb; top: -120px; right: -120px; }
.auth-brand-glow-2 { width: 300px; height: 300px; background: #0ea5e9; bottom: -140px; left: -100px; opacity: .35; }
.auth-brand-inner { position: relative; z-index: 1; width: 100%; max-width: 480px; animation: authFadeUp .6s ease both; }
.auth-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 64px; }
.auth-brand-mark { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 21px; backdrop-filter: blur(6px); }
.auth-brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.auth-brand-name span { color: #7dd3fc; }
.auth-brand-copy h1 { font-size: 36px; line-height: 1.18; font-weight: 800; letter-spacing: -.8px; margin: 0 0 16px; }
.auth-brand-copy p { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 0 0 40px; max-width: 420px; }
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.auth-features li { display: flex; gap: 14px; align-items: flex-start; }
.auth-features i { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.auth-features b { display: block; font-size: 14.5px; font-weight: 700; }
.auth-features span { font-size: 13px; color: rgba(255,255,255,.65); }

/* Form panel */
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; position: relative; }
.auth-card { width: 100%; max-width: 420px; animation: authFadeUp .5s .1s ease both; }
.auth-copy { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px; color: #94a3b8; }
@keyframes authFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Compact logo — only when the brand panel is hidden */
.auth-logo { display: none; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.auth-logo-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.auth-logo-text { font-size: 21px; font-weight: 800; color: var(--ink); }
.auth-logo-text span { color: var(--primary); }

/* Headings & text */
.auth-title { font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); margin: 0 0 6px; }
.auth-sub { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.form-label { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; }

/* Inputs */
.form-control { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.form-control::placeholder { color: #a8b3c4; }
.input-icon { position: relative; }
.input-icon > i.lead-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; pointer-events: none; transition: color .15s; }
.input-icon .form-control { padding-left: 42px; }
.input-icon:focus-within > i.lead-icon { color: var(--primary); }
.input-icon .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: #94a3b8; font-size: 17px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.input-icon .pw-toggle:hover { color: var(--primary); background: #f1f5f9; }
.input-icon.has-toggle .form-control { padding-right: 46px; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(37,99,235,.12); border-color: var(--primary); }

/* Buttons & links */
.btn-auth { background: linear-gradient(180deg, #3b82f6, var(--primary)); color: #fff; border: none; padding: 13px; border-radius: 12px; width: 100%; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(37,99,235,.28); transition: transform .12s, box-shadow .15s, filter .15s; }
.btn-auth:hover { filter: brightness(1.06); box-shadow: 0 10px 24px rgba(37,99,235,.34); }
.btn-auth:active { transform: translateY(1px); }
.auth-link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.auth-link:hover { color: var(--primary-dk); text-decoration: underline; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-divider { position: relative; text-align: center; margin: 22px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.auth-divider span { background: #f8fafc; padding: 0 12px; font-size: 12px; color: #94a3b8; position: relative; }
.alert { border-radius: 12px; font-size: 13.5px; border: none; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-logo { display: flex; }
    .auth-panel { padding: 28px 18px 64px; justify-content: flex-start; padding-top: 12vh; }
}
@media (max-width: 420px) { .auth-title { font-size: 24px; } }
