/* ===================================================================
   Login page — Hospital Helpdesk
   Self-contained styles. Independent from Tailwind/Vite build.
   Friendly blue / yellow / white theme to match the app shell.
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* MCMC building photo as the full background with a soft blue tint on
       top so the white login card stays crisp and readable. The solid
       blue gradient is the fallback if the image fails to load. */
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.55) 0%, rgba(37, 99, 235, 0.42) 100%),
        url('/images/mcmc-building.jpg') center center / cover no-repeat fixed,
        linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    background-blend-mode: normal;
}

/* -------------------------------------------------- card shell (solid white) */
.login-card {
    width: 100%;
    max-width: 960px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* -------------------------------------------------- LEFT — branding (frosted blue glass) */
.login-brand {
    /* Translucent blue tint over the page's building photo; the backdrop
       blur frosts whatever shows through, giving a glass panel. */
    background: linear-gradient(150deg, rgba(29, 78, 216, 0.12) 0%, rgba(37, 99, 235, 0.08) 55%, rgba(30, 64, 175, 0.12) 100%);
    backdrop-filter: blur(4px) saturate(108%);
    -webkit-backdrop-filter: blur(4px) saturate(108%);
    color: #fff;
    /* Tint is almost fully clear now, so lean harder on the text shadow to
       keep the white text readable over the exposed building photo. */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.login-brand-top      { text-align: center; margin-top: 32px; }
.login-brand-icon {
    width: 80px; height: 80px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.25);
}
.login-brand-icon i   { color: #fff; font-size: 30px; }
.login-brand-logo {
    display: inline-block;
    max-width: 200px;
    max-height: 90px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}
.login-brand-title    { font-size: 28px; font-weight: 700; margin: 0 0 12px 0; }
/* Yellow accent rule — the single controlled pop of the accent colour. */
.login-brand-title::after {
    content: '';
    display: block;
    width: 46px; height: 4px;
    background: #fbbf24;
    border-radius: 2px;
    margin: 14px auto 0;
}
.login-brand-tagline  {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.login-brand-footer {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 24px;
    text-align: center;
    margin-top: 40px;
}
.login-brand-footer .label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.login-brand-footer .name { font-size: 14px; font-weight: 700; margin-top: 4px; }
.login-brand-footer .dept { font-size: 12px; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }

/* -------------------------------------------------- RIGHT — form (solid white) */
.login-form-pane {
    background: #ffffff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-heading {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-heading .wave { font-size: 24px; }
.login-subheading {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0;
}

.login-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}
.login-alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.login-alert.ok    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

.login-form-group { margin-bottom: 18px; }
.login-form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 6px;
}

.login-input-wrap { position: relative; }
.login-input-icon-left,
.login-input-icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.login-input-icon-left  { left: 12px; }
.login-input-icon-right {
    right: 0;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.login-input-icon-right:hover { color: #2563eb; }

.login-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    font-size: 14px;
    color: #1f2937;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.login-input.has-right-icon { padding-right: 44px; }
.login-input::placeholder    { color: #9ca3af; }
.login-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
    color: #1f2937;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}
.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px -4px rgba(37, 99, 235, 0.45);
    transition: filter 0.15s, box-shadow 0.15s, transform 0.05s;
    margin-top: 4px;
}
.login-submit:hover  { filter: brightness(1.06); box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.55); }
.login-submit:active { transform: translateY(1px); }

.login-footer-note {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 28px;
}

/* -------------------------------------------------- responsive */
@media (max-width: 768px) {
    .login-card        { grid-template-columns: 1fr; max-width: 480px; }
    .login-brand       { display: none; }
    .login-form-pane   { padding: 36px 28px; }
}
