 /* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Body / Shell ─────────────────────────────────────────── */
.auth-body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    background: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

/* ─── Left branding panel ───────────────────────────────────── */
.auth-left {
    width: 460px;
    flex-shrink: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 900px) { .auth-left { display: none; } }

.auth-left::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.20) 0%, transparent 70%);
    top: -140px; right: -110px;
    pointer-events: none;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,.13) 0%, transparent 70%);
    bottom: -90px; left: -60px;
    pointer-events: none;
}

/* Logo */
.auth-logo { display: flex; align-items: center; gap: 13px; }
.auth-logo-icon {
    width: 46px; height: 46px;
    background: #4f46e5; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-logo-name { font-size: 16px; font-weight: 700; color: #f1f5f9; letter-spacing: -.2px; }
.auth-logo-sub  { font-size: 11px; color: #475569; margin-top: 2px; }

/* Hero */
.auth-hero { position: relative; z-index: 1; }
.auth-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 13px;
    background: rgba(99,102,241,.14);
    border: 1px solid rgba(99,102,241,.28);
    border-radius: 20px;
    font-size: 10px; font-weight: 700; color: #818cf8;
    letter-spacing: .07em; text-transform: uppercase;
    margin-bottom: 22px;
}
.auth-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
.auth-hero h1 {
    font-size: 30px; font-weight: 700; color: #f1f5f9;
    line-height: 1.22; letter-spacing: -.5px; margin-bottom: 14px;
}
.auth-hero p  { font-size: 14px; color: #64748b; line-height: 1.72; max-width: 340px; }

/* Stats */
.auth-stats {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 10px; margin-top: 32px;
}
.auth-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 13px 15px;
}
.auth-stat-n { font-size: 19px; font-weight: 700; color: #e2e8f0; display: block; }
.auth-stat-l { font-size: 11px; color: #475569; margin-top: 2px; display: block; }

.auth-foot { font-size: 12px; color: #334155; position: relative; z-index: 1; }

/* ─── Right form panel ──────────────────────────────────────── */
.auth-right {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background: #f8fafc;
}
.auth-box { width: 100%; max-width: 420px; }

/* Mobile logo */
.auth-mlogo {
    display: none; align-items: center; gap: 11px; margin-bottom: 28px;
}
@media (max-width: 900px) { .auth-mlogo { display: flex; } }
.auth-mlogo-icon {
    width: 37px; height: 37px; background: #4f46e5;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.auth-mlogo-name { font-size: 15px; font-weight: 700; color: #0f172a; }

/* Box header */
.auth-hd  { margin-bottom: 26px; }
.auth-h2  { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0 0 5px; letter-spacing: -.3px; }
.auth-sub { font-size: 13px; color: #64748b; margin: 0; }

/* Alerts */
.auth-alert {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 11px 14px; border-radius: 10px;
    font-size: 13px; line-height: 1.4;
    margin-bottom: 16px; border: 1px solid transparent;
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-alert-ok  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.auth-alert-err { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

/* Fields */
.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.auth-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: #374151;
}
.auth-input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; color: #111827; background: #fff;
    outline: none; font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.auth-input::placeholder { color: #9ca3af; }
.auth-input.is-err { border-color: #fca5a5; background: #fef2f2; }

/* Password wrap */
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 44px; }
.auth-eye-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #9ca3af;
    padding: 2px; display: flex; align-items: center; transition: color .12s;
}
.auth-eye-btn:hover { color: #6366f1; }

.auth-err-msg { font-size: 11px; color: #dc2626; }

/* Strength bar */
.auth-bar-wrap { height: 3px; background: #e5e7eb; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.auth-bar      { height: 100%; border-radius: 2px; width: 0; transition: width .3s, background .3s; }
.auth-bar-lbl  { font-size: 10px; min-height: 14px; margin-top: 3px; color: #9ca3af; }

/* Remember + forgot row */
.auth-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 8px; flex-wrap: wrap;
}
.auth-check-lbl {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: #374151; cursor: pointer;
}
.auth-check-lbl input { accent-color: #6366f1; width: 14px; height: 14px; cursor: pointer; }

/* Button */
.auth-btn {
    width: 100%; padding: 12px;
    background: #4f46e5; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; letter-spacing: -.1px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 1px 3px rgba(79,70,229,.3);
}
.auth-btn:hover  { background: #4338ca; box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.auth-btn:active { transform: scale(.99); }

/* Links */
.auth-link {
    color: #6366f1; text-decoration: none;
    font-weight: 600; font-size: 13px; transition: color .12s;
}
.auth-link:hover { color: #4338ca; text-decoration: underline; }

.auth-bottom {
    margin-top: 18px; text-align: center;
    font-size: 13px; color: #64748b;
}

/* Hint */
.auth-hint { font-size: 11px; color: #6b7280; margin-top: 2px; }
