/* ==========================================================================
   SECURE TELEMETRY ENTRY GATEWAY: HIGH-DENSITY LOGIN STYLES
   ========================================================================== */
.loginForm {
    max-width: 400px;
    margin: 60px auto;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px; /* Matches the metrics dashboard cards precisely */
    padding: 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

/* Alert Message Banner Frame Container */
.loginMessage {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #dc2626; /* Clinical warning red text color */
    background-color: #fef2f2; /* Soft red backdrop fill */
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Empty message block cleanup */
.loginMessage:empty {
    display: none !important;
}

/* Strip legacy unstyled fieldset borders and margins */
.loginLoginFieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Symmetrical vertical item spacing gap */
}

/* Premium Header Legend Typographic Accents */
.loginLegend {
    display: block;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a; /* Deep slate obsidian text */
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    padding: 0;
    text-align: center;
}

/* Form Entry Row Inputs Stack Layout Handles */
.loginUsernameLabel,
.loginPasswordLabel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569; /* Charcoal grey copy text labels */
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Clean Form Input Input Box Outlines */
.loginUsername,
.loginPassword {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    background-color: #f8fafc; /* Linen gray background fill */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

/* High-Contrast Interactive Selection Outlines */
.loginUsername:focus,
.loginPassword:focus {
    border-color: #005eb8 !important; /* NHS core corporate tracking blue focus accent */
    background-color: #ffffff !important;
}

/* Inline Checkbox Structural Container Row */
label[for="rememberme"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    margin-top: 2px;
}

label[for="rememberme"] input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #005eb8; /* Auto-tints checkbox to matching blue on toggle */
}

/* Primary Action Ingestion Submit Button Capsule */
.loginLoginButton {
    display: block;
    width: 100%;
    margin-top: 6px;
}

.loginLoginButton input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #475569 !important; /* Charcoal signature button surface fill */
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out, transform 0.05s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.loginLoginButton input[type="submit"]:hover {
    background-color: #334155 !important; /* Deepens background color slightly on desktop hovers */
}

/* Tactile Click Press Feedback */
.loginLoginButton input[type="submit"]:active {
    transform: scale(0.99);
}

/* ==========================================================================
   RESPONSIVE TELEMETRY OVERRIDES FOR SMARTPHONES SCREEN VIEWS
   ========================================================================== */
@media (max-width: 480px) {
    .loginForm {
        margin: 20px 16px;
        padding: 20px;
        border-radius: 12px;
    }
}

/* Print Overrides: Hides security gateway prompts entirely from paper copies */
@media print {
    .loginForm {
        display: none !important;
    }
}
