/* Layout only. Branding stays in the stylesheet selected by Administration. */
* { box-sizing: border-box; }
.login-page { margin: 0; min-height: 100vh; background-color: #f4f5f7; }
.login-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px clamp(28px, 5vw, 88px);
}
.login-card {
    width: min(100%, 460px);
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 32px 36px;
    background-color: var(--background-login, #292C3A);
    color: var(--color-letra-login, white);
    box-shadow: 0 20px 64px rgba(0,0,0,.22);
}
.login-brand { display: flex; align-items: center; justify-content: center; margin: 0 0 18px; }
.login-brand-image { display: block; width: 100%; max-width: 155px; height: 96px; object-fit: contain; }
.login-heading { margin-bottom: 28px; }
.login-heading h1 { font: inherit; font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.2; margin: 0 0 10px; color: inherit; }
.login-heading p { font-size: .92rem; line-height: 1.55; margin: 0; color: inherit; opacity: .78; }
.form-label { display: inline-block; margin-bottom: 8px; padding: 0; font-size: .9rem; font-weight: 500; line-height: 1.4; }
.form-control { width: 100%; min-height: 50px; padding: 12px 15px; font: inherit; font-size: 1rem; border: 1px solid #ced4da; border-radius: 10px; text-align: left; }
.form-control::placeholder { color: #6c757d; opacity: 1; }
.form-control:focus { border-color: var(--color-hover-Botonlogin, #5966ce); box-shadow: 0 0 0 3px rgba(128,128,128,.22); }
.login-password { border-radius: 10px; background: white; border: 1px solid #ced4da; overflow: hidden; }
.login-password .form-control { border: 0; border-radius: 0; min-width: 0; }
.login-password:focus-within { outline: 2px solid var(--color-hover-Botonlogin, #5966ce); outline-offset: 2px; }
.login-password .form-control:focus { box-shadow: none; }
#togglePassword { border: 0; background: white; color: #5f6874; min-width: 48px; }
.btn-login { min-height: 50px; padding: 12px 20px; border-radius: 10px; font-size: 1rem; font-weight: 600; line-height: 1.5; background-color: var(--color-hover-Botonlogin, #5966ce); border-color: var(--color-hover-Botonlogin, #5966ce); color: #fff; transition: filter .15s ease, transform .15s ease; }
.btn-login:hover, .btn-login:focus-visible { background-color: var(--color-hover-Botonlogin, #5966ce); border-color: var(--color-hover-Botonlogin, #5966ce); color: #fff; filter: brightness(1.08); }
.btn-login:active { transform: translateY(1px); }
.alert { font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.alert i { margin-right: 6px; }
#carouselBackground { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#carouselBackground .carousel-inner, #carouselBackground .carousel-item { height: 100%; }
#carouselBackground .carousel-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 767px) {
    .login-layout { padding: 28px 16px; justify-content: center; }
    .login-card { padding: 26px 24px; border-radius: 20px; max-width: 440px; }
    .login-brand { margin-bottom: 20px; }
    .login-brand-image { height: 84px; max-width: 140px; }
    .login-heading { margin-bottom: 24px; }
    .login-heading h1 { font-size: 1.5rem; }
}
@media (max-height: 700px) and (min-width: 768px) {
    .login-layout { padding-top: 24px; padding-bottom: 24px; }
    .login-brand-image { height: 84px; max-width: 140px; }
    .login-brand { margin-bottom: 16px; }
    .login-card { padding-top: 24px; padding-bottom: 24px; }
    .login-heading { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-page *, .login-page *::before, .login-page *::after { transition: none !important; animation: none !important; }
}

/* MFA uses the same administrable identity as the login. */
.mfa-heading { text-align: center; margin-bottom: 22px; }
.mfa-step { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 500; opacity: .8; margin-bottom: 14px; }
.mfa-heading h1 { font-size: 1.55rem; }
.mfa-heading p { max-width: 330px; margin: 0 auto; }
.mfa-delivery { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 24px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); border-radius: 12px; background: color-mix(in srgb, currentColor 5%, transparent); }
.mfa-delivery > i { font-size: 1.1rem; opacity: .75; }
.mfa-delivery > i:last-child { margin-left: auto; font-size: .85rem; }
.mfa-delivery span { display: block; font-size: .78rem; opacity: .7; margin-bottom: 3px; }
.mfa-delivery strong { display: block; font-size: .95rem; letter-spacing: .04em; font-weight: 600; }
.mfa-code { min-height: 62px; font-size: 1.65rem; font-weight: 600; text-align: center; letter-spacing: .32em; padding-left: calc(15px + .32em); font-variant-numeric: tabular-nums; }
.mfa-code::placeholder { opacity: .5; }
.mfa-validity { font-size: .78rem; opacity: .75; margin: 12px 0 24px; text-align: center; }
.mfa-validity i { margin-right: 5px; }
.mfa-help { text-align: center; font-size: .78rem; line-height: 1.6; opacity: .75; margin: 20px 0 18px; }
.mfa-back { display: block; text-align: center; color: inherit; font-size: .85rem; text-decoration: none; }
.mfa-back i { margin-right: 6px; }
.mfa-back:hover { color: inherit; text-decoration: underline; }
.mfa-back:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
