html, body {
    height: 100%;
    margin: 0;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #fff;
    font-family: 'Source Sans Pro', Arial, sans-serif;
}

.login-box {
    width: 380px;
    max-width: 92%;
}

/* Dark card on the white page, using the xPal palette (Indigo Prime #3631C6 /
   Carbon Black #0D0D0D) — the same skin as the 2FA step panel. */
.login-card {
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #1c1a4a 0%, #0d0d0d 100%);
    box-shadow: 0 14px 35px rgba(13, 13, 13, 0.28);
    color: #fafaff;
}

.login-card-body {
    padding: 28px 26px 22px;
}

.login-box-msg {
    text-align: center;
    color: #b9bdd6;
    margin-bottom: 18px;
}

/* ── Inputs ───────────────────────────────────────────────────────── */
/* Transparent fields with a periwinkle hairline, rather than Bootstrap's white
   ones, which would fight the dark card. */
.login-card .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(150, 162, 246, 0.4);
    color: #fafaff;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #96a2f6;
    color: #fafaff;
    box-shadow: 0 0 0 0.2rem rgba(54, 49, 198, 0.3);
}

.login-card .form-control::placeholder {
    color: #8c90a8;
}

/* Chrome/Edge paint autofilled fields light blue and ignore background-color.
   A large inset shadow is the only way to repaint them for the dark card. */
.login-card .form-control:-webkit-autofill,
.login-card .form-control:-webkit-autofill:hover,
.login-card .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #fafaff;
    -webkit-box-shadow: 0 0 0 1000px #1a1842 inset;
    caret-color: #fafaff;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(150, 162, 246, 0.4);
    border-left: none;
    color: #96a2f6;
}

/* Inline SVG stand-ins for the Font Awesome envelope / lock icons. */
.fa-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ── Remember me ──────────────────────────────────────────────────── */
/* Base of the icheck-bootstrap "primary" checkbox (served locally; the CDN copy is blocked by the CSP). */
.icheck-primary {
    position: relative;
    display: inline-block;
}

.icheck-primary > input:first-child {
    position: absolute !important;
    opacity: 0 !important;
    margin: 0 !important;
}

.icheck-primary > input:first-child + label {
    display: inline-block;
    position: relative;
    padding-left: 29px;
    min-height: 22px;
    line-height: 22px;
    cursor: pointer;
    margin: 0;
}

.icheck-primary > input:first-child + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #d3cfc8;
    border-radius: 0;
}

.icheck-primary > input:first-child:checked + label::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 8px;
    width: 7px;
    height: 12px;
    border: 2px solid #fff;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.icheck-primary > input:first-child:focus-visible + label::before {
    outline: 2px solid #96a2f6;
    outline-offset: 2px;
}

.login-card label {
    color: #b9bdd6;
}

.login-card .icheck-primary > input:first-child:not(:checked):not(:disabled) + label::before {
    border-color: rgba(150, 162, 246, 0.5);
}

.login-card .icheck-primary > input:first-child:checked + label::before {
    background-color: #3631c6;
    border-color: #3631c6;
}

/* ── Sign in ──────────────────────────────────────────────────────── */
.login-card .btn-primary {
    background: #3631c6;
    border-color: #3631c6;
    color: #fafaff;
}

.login-card .btn-primary:hover,
.login-card .btn-primary:focus {
    background: #4b45e0;
    border-color: #4b45e0;
}

.error-text {
    text-align: center;
    margin-top: 10px;
    min-height: 1.2em;
    color: #ff6e6e !important;
}

/* reCAPTCHA v3 badge hidden (see the compliance note in Views/Login/Index.cshtml). */
.grecaptcha-badge { visibility: hidden !important; }

/* The verification-code steps (Vali / xPal) are styled in login-steps.css. */
