/* Tes redesign, work order 7: sign-in and account pages (boards I-Login, I-LoginWith2fa,
   I-RecoveryCode, I-RecoveryCodes, I-EnableAuthenticator, I-ChangePassword, I-Notices).
   Loaded through each Identity page's Styles section, after tes-popups.css, which already gives
   the charcoal ground, the centred #262626 card and the logo. This sheet finishes the card
   contents: stepper, numbered setup discs, codes, hints and checks. Everything is scoped to
   body.tes-auth (the _AuthLayout body) or to .tes-auth-account (the light change-password card).
   Colour pairs on the card (#262626): #fff 15:1, #cbd0d6 9.3:1, #fca5a5 7.7:1, #00d639 7.6:1
   (green only as a fill behind charcoal or as an icon, never as running text).
   Screen only: the existing print rules in secure-upload.css keep the recovery-code sheet plain. */
@media screen {

/* Hints, help text and validation messages must clear 4.5:1 on the dark card. */
.tes-auth .tt-auth__hint,
.tes-auth .form-text { color: #cbd0d6; }
.tes-auth span.text-danger,
.tes-auth .field-validation-error { color: #fca5a5 !important; }
.tes-auth .tt-auth__help { text-align: left; }
.tes-auth .tt-auth__help .tt-auth__link { color: #fff; text-decoration: underline; }
.tes-auth .tt-supportline__mail { color: #fff; text-decoration: underline; }
.tes-auth :focus-visible { outline: 2px solid #00d639; outline-offset: 3px; }
.tes-auth .tt-auth__btn:disabled { opacity: .5; cursor: not-allowed; }

/* Setup progress: "Step n of 3" and three numbered stops (the .prog stepper of the boards).
   The number is drawn by a CSS counter so the markup keeps its plain list and aria-current. */
.tes-auth .tt-obsteps { margin-bottom: 1.5rem; }
.tes-auth .tt-obsteps__count { color: #cbd0d6; letter-spacing: 0; text-transform: none; font-size: .8rem; font-weight: 600; }
.tes-auth .tt-obsteps__list { counter-reset: tes-auth-step; flex-wrap: nowrap; gap: 0; overflow-x: auto; padding-bottom: .25rem; }
.tes-auth .tt-obsteps__item {
    counter-increment: tes-auth-step;
    position: relative; flex: 1 0 5.5rem;
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: 0; border: 0; border-radius: 0; background: none;
    color: #cbd0d6; font-size: .75rem; font-weight: 600; text-align: center;
}
.tes-auth .tt-obsteps__item::before {
    content: counter(tes-auth-step);
    position: relative; z-index: 1;
    width: 1.85rem; height: 1.85rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #343434; border: 1px solid #747474; color: #fff; font-size: .78rem; font-weight: 700;
}
.tes-auth .tt-obsteps__item::after {
    content: ""; position: absolute; top: .92rem; left: -50%; width: 100%; height: 2px;
    background: #484848; z-index: 0;
}
.tes-auth .tt-obsteps__item:first-child::after { display: none; }
.tes-auth .tt-obsteps__item.is-done::after,
.tes-auth .tt-obsteps__item.is-current::after { background: #00d639; }
.tes-auth .tt-obsteps__item.is-done { border: 0; color: #cbd0d6; }
.tes-auth .tt-obsteps__item.is-done::before { display: none; }
.tes-auth .tt-obsteps__item.is-done > .bi {
    position: relative; z-index: 1;
    width: 1.85rem; height: 1.85rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #dff5e8; border: 1px solid #b9e6c9; color: #047857; font-size: 1.1rem;
}
.tes-auth .tt-obsteps__item.is-current { background: none; border: 0; color: #fff; font-weight: 600; }
.tes-auth .tt-obsteps__item.is-current::before {
    background: linear-gradient(180deg, #2bee5c, #00d639); border-color: transparent; color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(0, 214, 57, .18);
}

/* Authenticator setup: numbered discs are a green fill with charcoal on top. */
.tes-auth .tt-steps__item { gap: 1rem; padding-bottom: 1.75rem; }
.tes-auth .tt-steps__num {
    width: 1.85rem; height: 1.85rem; border: 0; color: #1a1a1a;
    background: linear-gradient(180deg, #2bee5c, #00d639);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .16), 0 5px 14px -4px rgba(0, 214, 57, .55);
}
.tes-auth .tt-steps__title { color: #fff; font-size: 1.05rem; margin-top: .1rem; }
.tes-auth .tt-steps__text { color: #cbd0d6; max-width: 65ch; }
.tes-auth .tt-steps__text strong { color: #fff; }
.tes-auth .tt-qr { padding: .5rem; border-radius: .5rem; max-width: 100%; }
.tes-auth .tt-qr img { max-width: 100%; height: auto; }
.tes-auth .tt-manualkey summary { color: #fff; text-decoration: underline; }
.tes-auth .tt-manualkey__value {
    background: #343434; border-color: #747474; color: #fff; overflow-wrap: anywhere; max-width: 100%;
}

/* Recovery codes: two columns of mono codes in a recessed well. */
.tes-auth .tt-codes { background: #1a1a1a; border: 1px solid #747474; border-radius: .5rem; padding: 1rem; gap: .5rem 1rem; }
.tes-auth .tt-codes__item { color: #fff; font-size: .95rem; overflow-wrap: anywhere; }
.tes-auth .btn-outline-light { background: #343434; border-color: #747474; color: #fff; font-weight: 600; }
.tes-auth .btn-outline-light:hover,
.tes-auth .btn-outline-light:focus { background: #404040; border-color: #cbd0d6; color: #fff; }

/* The "I have saved these codes" box: visible edge, green fill with a charcoal tick when ticked. */
.tes-auth .tt-auth__check .form-check-input { background-color: #343434; border: 1px solid #cbd0d6; }
.tes-auth .tt-auth__check .form-check-input:checked {
    background-color: #00d639; border-color: #00d639;
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%231a1a1a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.tes-auth .tt-auth__check .form-check-label { color: #fff; }

/* Password checklist on the dark first-run card: grey until met, then white with a green tick. */
.tes-auth .tt-pwcheck li { color: #cbd0d6; }
.tes-auth .tt-pwcheck li.is-met { color: #fff; }
.tes-auth .tt-pwcheck li.is-met .bi { color: #00d639; }
.tes-auth .tt-pwmatch { color: #cbd0d6; }
.tes-auth .tt-pwmatch.is-met { color: #fff; }
.tes-auth .tt-pwmatch.is-unmet { color: #fca5a5; }

/* Notice pages: a round amber disc carries the icon (board I-Notices). */
.tes-auth .tes-auth-status { text-align: left; }
.tes-auth .tes-auth-disc {
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #1a1a1a;
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .16), 0 5px 14px -4px rgba(245, 158, 11, .55);
}

/* Voluntary change password: an ordinary account task inside the application shell (light). */
.tes-auth-account.tt-history { max-width: 42rem; width: 100%; margin: 1.5rem auto; }
.tes-auth-account .tes-auth-account__card {
    padding: 2rem; border: 1px solid #e5e7eb; border-radius: .75rem; background: #fff;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .04), 0 2px 6px -1px rgba(16, 24, 40, .05);
}
.tes-auth-account h1 { font-size: 1.45rem; font-weight: 700; color: #1a1a1a; }
.tes-auth-account .form-label { font-size: .8rem; font-weight: 600; color: #374151; }
.tes-auth-account .form-control { border: 1px solid #d1d5db; border-radius: .5rem; }
.tes-auth-account .form-control:focus { border-color: #00d639; box-shadow: 0 0 0 3px rgba(0, 214, 57, .25); }
.tes-auth-account .text-muted { color: #4b5563 !important; }
.tes-auth-account .btn { min-height: 2.5rem; }
/* Checklist and match line on white: graphite when unmet, dark green ink when met (all above 4.5:1). */
.tes-auth-account .tt-pwcheck li { color: #374151; }
.tes-auth-account .tt-pwcheck li.is-met { color: #0b6b3a; }
.tes-auth-account .tt-pwmatch { color: #374151; }
.tes-auth-account .tt-pwmatch.is-met { color: #0b6b3a; }
.tes-auth-account .tt-pwmatch.is-unmet { color: #a61b1b; }

}
@media screen and (max-width: 575.98px) {
    .tes-auth-account .tes-auth-account__card { padding: 1.25rem; }
}
