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;
}

/* ── Remember me ──────────────────────────────────────────────────── */
.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;
}

/* The verification-code steps (Vali / xPal) are styled in login-steps.css. */
