/* ==========================================================================
   ENABLE MORIS - MODERN ACCESSIBLE LOGIN CARD
   ========================================================================== */

body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    padding: 20px;
}

.loginCon {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    color: #1e293b;
    padding: 40px 32px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
}

.loginCon img {
    width: auto;
    max-height: 48px;
    margin: 0 auto 16px auto;
    display: block;
}

.loginCon h3 {
    color: #004a83;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 24px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.formAlert {
    text-align: center;
    font-size: 0.875rem;
    margin: 0 0 16px 0;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
}

.formAlert--error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.formAlert--success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

/* Form Groups */
.conInput,
.conInputOTP {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    text-align: left;
}

.conInput label,
.conInputOTP label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #334155;
}

.loginCon .conInput input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.loginCon .conInput input:focus-visible {
    outline: none;
    border-color: #004a83;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 74, 131, 0.18);
}

/* Checkbox & Forgot Password Inline Row */
.loginRowExtras {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #004a83;
    cursor: pointer;
    margin: 0;
}

.checkbox label {
    margin: 0;
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.forgotLink {
    color: #004a83;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 200ms ease, text-decoration 200ms ease;
}

.forgotLink:hover {
    text-decoration: underline;
    color: #002d50;
}

.forgotLink:focus-visible {
    outline: 3px solid #004a83;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Primary Action Button */
.btnLogin {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    border: none;
    background: #004a83;
    color: #ffffff;
    font-weight: 750;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 74, 131, 0.25);
    transition: background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.btnLogin:hover {
    background: #00335c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 74, 131, 0.35);
}

.btnLogin:focus-visible {
    outline: 3px solid #004a83;
    outline-offset: 3px;
}

/* OTP Input */
.conInputOTP {
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.loginCon .conInputOTP input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    box-sizing: border-box;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-weight: 700;
}

/* Accessibility Controls Inside Login Card */
.loginCon .a11yControls {
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.loginCon .a11yMenu {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.loginCon .a11yMenu.is-open {
    display: grid;
}

.loginCon .a11yToggleBtn,
.loginCon .a11yBtn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.loginCon .a11yToggleBtn:hover,
.loginCon .a11yBtn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.loginCon .a11yBtn[aria-pressed="true"] {
    background: #004a83;
    color: #ffffff;
    border-color: #004a83;
}

/* High Contrast Override */
html[data-contrast="high"] body {
    background: #000000;
}

html[data-contrast="high"] .loginCon {
    background: #000000;
    border: 2px solid #ffffff;
    color: #ffffff;
}

html[data-contrast="high"] .loginCon h3,
html[data-contrast="high"] .forgotLink {
    color: #ffff00;
}

html[data-contrast="high"] .conInput label,
html[data-contrast="high"] .checkbox label {
    color: #ffffff;
}

html[data-contrast="high"] .loginCon .conInput input,
html[data-contrast="high"] .loginCon .conInputOTP input {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

html[data-contrast="high"] .loginCon .a11yToggleBtn,
html[data-contrast="high"] .loginCon .a11yBtn {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

html[data-contrast="high"] .loginCon .a11yBtn[aria-pressed="true"] {
    background: #ffff00;
    color: #000000;
    border-color: #ffff00;
}

html[data-contrast="high"] .btnLogin {
    background: #ffffff;
    color: #000000;
}