/* ============================================================
   login.css — Modern login page
   ============================================================ */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #d0d8e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==================== BANNER ==================== */

.login-banner {
    width: 100%;
    background: #0A4F6B;
    padding: 0;
    margin: 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.login-banner img {
    height: 100px;
    padding: 12px 0;
}

/* ==================== NOTICE BANNER ==================== */

.login-notice {
    max-width: 420px;
    margin: 20px auto 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0A4F6B 0%, #0e6d8e 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(10, 79, 107, 0.3);
}

.login-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.login-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

/* ==================== PAGE LAYOUT ==================== */

.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    min-height: calc(100vh - 124px);
}

/* ==================== LOGIN CARD ==================== */

.login-page form {
    display: flex;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px 36px 32px;
    width: 275px;
    text-align: center;
}

.login-card h3 {
    margin: 0 0 28px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ==================== FORM INPUTS ==================== */

.login-field {
    margin-bottom: 18px;
    text-align: left;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.login-field input[type="text"],
.login-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 20px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fafbfc;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input[type="text"]:focus,
.login-field input[type="password"]:focus {
    outline: none;
    border-color: #0A4F6B;
    box-shadow: 0 0 0 3px rgba(10, 79, 107, 0.12);
    background: white;
}

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1a1a1a;
    font-size: 20px !important;
    -webkit-box-shadow: 0 0 0 1000px #fafbfc inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ==================== PASSWORD TOGGLE ==================== */

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 44px;
}

.login-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #888;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
}

.login-password-toggle:hover {
    color: #333;
}

/* ==================== REMEMBER ME ==================== */

.login-remember {
    display: flex;
    align-items: center;
    margin: 4px 0 24px 0;
    font-size: 14px;
    color: #555;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #0A4F6B;
    cursor: pointer;
}

.login-remember label {
    cursor: pointer;
}

/* ==================== LOGIN BUTTON ==================== */

.login-button {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #0A4F6B;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
}

.login-button:hover {
    background: #083d54;
    box-shadow: 0 2px 8px rgba(10, 79, 107, 0.3);
}

.login-button:active {
    background: #062f42;
}

/* ==================== FORGOT PASSWORD ==================== */

.login-forgot {
    margin-top: 20px;
    font-size: 14px;
}

.login-forgot a {
    color: #0A4F6B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot a:hover {
    color: #083d54;
    text-decoration: underline;
}

/* ==================== BUTTON GROUP ==================== */

.login-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.login-cancel-link {
    color: #0A4F6B;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-cancel-link:hover {
    color: #083d54;
    text-decoration: underline;
}

/* ==================== ALERTS ==================== */

.login-alert-error {
    background: #fdeaea;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: left;
}

.login-alert-warning {
    background: #fef9e7;
    color: #7d6608;
    border: 1px solid #f9e79f;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: left;
}

/* ==================== MFA ==================== */

#mfaButton {
    background: none;
    border: none;
    color: #0A4F6B;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    text-align: left;
}

#mfaButton:hover {
    text-decoration: underline;
}

/* ==================== FORGOT PASSWORD PAGE ==================== */

.login-instructions {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 22px 0;
    text-align: left;
}

.login-recaptcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
}

.login-recaptcha .g-recaptcha {
    transform: scale(0.87);
    transform-origin: center;
}

.login-support {
    margin: 16px 0 0 0;
    font-size: 13px;
    color: #888;
}

/* ==================== SUCCESS MESSAGE ==================== */

.login-success {
    background: #eaf7ee;
    color: #276738;
    border: 1px solid #b7e4c7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-success-icon {
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.login-success p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.login-button-link {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 13px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #0A4F6B;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
}

.login-button-link:hover {
    background: #083d54;
    box-shadow: 0 2px 8px rgba(10, 79, 107, 0.3);
    color: white;
    text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 480px) {
    .login-card {
        margin: 0 16px;
        padding: 32px 24px 28px;
    }

    .login-page {
        padding-top: 40px;
    }
}
