/* =========================================================================
   Login screen — shared by all five panels, because there is only one.
   ========================================================================= */

:root {
    --brand: #dc2626;
    --brand-dark: #991b1b;
    --ink: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
}

body.login-body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #f4f6f9;
}

.login-shell { display: flex; min-height: 100vh; }

/* ---------------------------------------------------------------- Brand side */
.login-brand {
    flex: 0 0 46%;
    max-width: 46%;
    background: linear-gradient(155deg, #1e293b 0%, #0f172a 60%, #450a0a 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}
.login-brand::after {
    /* Soft brand glow, purely decorative. */
    content: "";
    position: absolute;
    width: 460px; height: 460px;
    right: -140px; bottom: -160px;
    background: radial-gradient(circle, rgba(220,38,38,.35) 0%, transparent 68%);
}
.brand-inner {
    position: relative;
    z-index: 1;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.brand-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 3rem; }
.brand-logo strong { display: block; font-size: 1.05rem; line-height: 1.1; color: #fff; }
.brand-logo small { color: #94a3b8; font-size: .78rem; }

.brand-mark {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 1.25rem;
}

.login-brand h1 { font-size: 2.05rem; font-weight: 650; line-height: 1.25; color: #fff; margin: 0 0 1rem; }
.login-brand p { color: #94a3b8; max-width: 34ch; line-height: 1.65; margin: 0 0 2.25rem; }

.dept-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.dept-list li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: #cbd5e1; }
.dept-list .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.brand-foot { margin-top: auto; padding-top: 3rem; color: #64748b; font-size: .78rem; }

/* ---------------------------------------------------------------- Form side */
.login-form-side {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}
.login-card h2 { font-size: 1.5rem; font-weight: 650; margin: 0 0 .35rem; }

.form-label { font-weight: 500; font-size: .86rem; margin-bottom: .35rem; }
.input-group-text { background: #f8fafc; border-color: var(--border); color: var(--muted); }
.form-control { border-color: var(--border); padding: .58rem .75rem; }
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .15);
}

.btn-login {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    font-weight: 500;
    padding: .62rem 1rem;
    border-radius: 8px;
}
.btn-login:hover, .btn-login:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 991.98px) {
    .login-shell { display: block; }
    .login-form-side { min-height: 100vh; }
}
@media (max-width: 575.98px) {
    .login-card { padding: 1.5rem; border-radius: 12px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
