/* VT Employee Handbook — auth studio */
:root {
    --vt-navy: #06121f;
    --vt-ink: #0c1a2e;
    --vt-blue: #1a5dab;
    --vt-green: #39b54a;
    --vt-paper: #f3efe6;
    --vt-card: #fffdf8;
    --vt-line: rgba(15, 23, 42, 0.08);
    --vt-text: #102033;
    --vt-mute: #5b6b7c;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body.auth {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: var(--vt-text);
    background: var(--vt-paper);
    min-height: 100vh;
    word-spacing: normal;
    letter-spacing: normal;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
}

.auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at -10% -10%, rgba(26, 93, 171, 0.42), transparent 55%),
        radial-gradient(700px 420px at 110% 90%, rgba(57, 181, 74, 0.28), transparent 50%),
        linear-gradient(165deg, #071320 0%, #0c1a2e 52%, #102844 100%);
    color: #e8eef6;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
    pointer-events: none;
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-logo {
    height: 44px;
    overflow: hidden;
    width: 220px;
}

.auth-logo img {
    height: 78px;
    margin-top: -16px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 56px 0 18px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #9fb3c9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-kicker i { color: var(--vt-green); }

.auth-brand h1 {
    margin: 0 0 14px;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
    max-width: 12ch;
}

.auth-brand p.lead {
    margin: 0;
    max-width: 34ch;
    color: #93a4bc;
    font-size: 15px;
    line-height: 1.6;
}

.auth-points {
    display: grid;
    gap: 10px;
    margin-top: 40px;
}

.auth-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c9d6e5;
    font-size: 13px;
    font-weight: 500;
}

.auth-points i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(57, 181, 74, 0.14);
    color: #6ee07d;
    font-size: 12px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background:
        radial-gradient(600px 280px at 80% 0%, rgba(26, 93, 171, 0.07), transparent 60%),
        var(--vt-paper);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--vt-card);
    border: 1px solid var(--vt-line);
    border-radius: 28px;
    padding: 36px 36px 32px;
    box-shadow: 0 24px 60px rgba(16, 32, 51, 0.08);
    word-spacing: normal;
    letter-spacing: normal;
}

.auth-card-logo {
    display: none;
    height: 40px;
    overflow: hidden;
    margin-bottom: 18px;
}

.auth-card-logo img { height: 72px; margin-top: -16px; }

.auth-card h2 {
    margin: 0 0 6px;
    font-family: Outfit, Inter, sans-serif;
    font-size: 28px;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.auth-card .sub {
    margin: 0 0 24px;
    color: var(--vt-mute);
    font-size: 14px;
    line-height: 1.5;
}

.auth-form label {
    display: block;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.auth-form input {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: #fff;
    font: 15px Inter, sans-serif;
    color: var(--vt-text);
    transition: border-color .15s, box-shadow .15s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--vt-blue);
    box-shadow: 0 0 0 4px rgba(26, 93, 171, 0.12);
}

.auth-form .remember-row,
.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--vt-blue);
}
.remember-row span { line-height: 1.35; }

.field-pass { position: relative; }
.field-pass input { padding-right: 44px; }
.field-pass button {
    position: absolute;
    right: 8px;
    top: 28px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
}

.auth-form > button[type="submit"] {
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #2268b8, #1a5dab);
    color: #fff;
    font: 600 15px Inter, sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(26, 93, 171, 0.25);
}

.auth-form > button[type="submit"]:hover { filter: brightness(1.05); }

.auth-form .btn-ghost,
form .btn-ghost {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid #d7deea;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    font: 600 14px Inter, sans-serif;
    cursor: pointer;
}

.auth-form .btn-ghost:hover,
form .btn-ghost:hover { background: #f8fafc; }

.otp-step { margin: 0 0 16px; }
.otp-step p { margin: 0 0 6px; color: #334155; font-size: 14px; line-height: 1.5; }
.otp-step .otp-mail { font-weight: 700; color: var(--vt-text); word-break: break-all; }
.otp-step .otp-meta { color: var(--vt-mute); font-size: 13px; }

.otp-input {
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.auth-links a {
    color: var(--vt-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

.err, .ok {
    padding: 10px 12px;
    border-radius: 12px;
    margin: 0 0 16px;
    font-size: 13px;
}

.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

body.auth-staff .auth-brand {
    background:
        radial-gradient(800px 480px at 0% 0%, rgba(26, 93, 171, 0.5), transparent 52%),
        radial-gradient(560px 360px at 100% 100%, rgba(14, 42, 84, 0.55), transparent 46%),
        linear-gradient(165deg, #050b14 0%, #0a1626 60%, #12315a 100%);
}

body.auth-staff .auth-points i {
    background: rgba(26, 93, 171, 0.22);
    color: #8ec0f0;
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand {
        min-height: auto;
        padding: 28px 24px 32px;
    }
    .auth-brand h1 { max-width: none; font-size: 32px; }
    .auth-kicker { margin-top: 28px; }
    .auth-points { display: none; }
    .auth-card-logo { display: none; }
}

@media (max-width: 560px) {
    .auth-card { padding: 26px 20px; border-radius: 22px; }
    .auth-panel { padding: 20px 14px 36px; }
}
