/**
 * Login Page Styles — PCS Operations
 * Staff login only — no registration.
 */

body {
    background: linear-gradient(145deg, #0f2440 0%, #1a3a5c 50%, #0e1e30 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.login-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 100%);
    padding: 36px 32px 28px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.login-logo-wrap {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.10);
    border: 2px solid rgba(201,168,76,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-logo-svg {
    width: 38px;
    height: 38px;
    fill: var(--accent);
}

.login-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
}

.login-tagline {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.login-body {
    padding: 36px 32px 32px;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.step { display: none; }
.step.active {
    display: block;
    animation: fadeIn var(--t-normal);
}
.step h2 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.step .step-sub {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

/* ── OTP code input ─────────────────────────────────────────────────────── */
.otp-input {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding: 14px;
}

/* ── Resend ─────────────────────────────────────────────────────────────── */
.resend-row {
    text-align: center;
    margin-top: 10px;
}
.resend-row button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: .875rem;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    transition: background var(--t-fast);
}
.resend-row button:hover  { background: var(--bg-hover); }
.resend-row button:disabled { color: var(--text-muted); cursor: default; }

/* ── Back link ──────────────────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: .82rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 20px;
    font-family: var(--font-sans);
    transition: color var(--t-fast);
}
.back-link:hover { color: var(--text-secondary); }

/* ── Error message ──────────────────────────────────────────────────────── */
.form-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: .875rem;
    margin-bottom: 14px;
    display: none;
}
.form-error.show { display: block; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.login-footer {
    text-align: center;
    padding: 14px 32px 20px;
    font-size: .78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .login-header { padding: 28px 24px 22px; }
    .login-body   { padding: 28px 24px 24px; }
    .login-footer { padding: 12px 24px 16px; }
}

/* ── Dark mode ──────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    body { background: linear-gradient(145deg, #080f18 0%, #0f1923 60%, #060c14 100%); }

    .login-card   { background: #1a2535; }
    .login-body   { background: #1a2535; }
    .login-footer { background: #1a2535; border-color: #2a3d52; }
}
