/*
 * Sign-in pages. One stylesheet for both guards.
 *
 * admin/login.php and pandit-login.php each carried ~200 lines of near-
 * identical inline <style>, which is how they ended up looking subtly different
 * from each other.
 */
:root {
    --auth-ink: #191a1d;
    --auth-ink-2: #55565b;
    --auth-line: #dfdfda;
    --auth-accent: #800000;
    --auth-accent-ink: #ffd700;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #800000 0%, #4a0000 100%);
    font: 15px/1.6 ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
    color: var(--auth-ink);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
    color: var(--auth-accent);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    text-align: center;
}

.auth-sub {
    margin: 0 0 24px;
    text-align: center;
    color: var(--auth-ink-2);
    font-size: 14px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.auth-alert.is-error { background: #f8e6e3; color: #a81e12; }
.auth-alert.is-success { background: #e1eee7; color: #2e6b4f; }

.auth-field { margin-bottom: 18px; }

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-ink-2);
}

.auth-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--auth-line);
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: 2px solid var(--auth-accent);
    outline-offset: -1px;
    border-color: var(--auth-accent);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--auth-ink-2);
}

.auth-remember input { width: auto; }

.auth-submit {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--auth-accent);
    color: var(--auth-accent-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover { background: #660000; }

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-links a { color: var(--auth-accent); }
