/* Scoped login layout; shared controls retain the Mantis theme. */
body.mantis-login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    background: #263238;
}
.mantis-login > .navbar { flex-shrink: 0; margin: 0; }
.mantis-login > .navbar-inverse { min-height: 48px !important; }
.mantis-login-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 64px 7%;
    background: #263238 url("../images/backgrounds/login-orden-desktop.d85885d17fd3.webp") center / cover no-repeat;
}
.mantis-login-welcome { flex: 1; min-width: 0; color: #fff; }
.mantis-login-welcome h1 { margin: 0 0 16px; color: inherit; font-size: clamp(32px, 3.5vw, 64px); line-height: 1.15; letter-spacing: -0.025em; }
.mantis-login-welcome p { margin: 0; color: #e0e5e8; font-size: clamp(18px, 1.7vw, 28px); }
.mantis-login-card {
    flex: 0 0 460px;
    max-width: 100%;
    padding: 44px 36px;
    background: #fff;
    color: #263238;
    border: 1px solid #e1e5e9;
    border-radius: 14px;
    box-shadow: 0 16px 48px #0000001f;
}
.mantis-login-heading { margin-bottom: 36px; text-align: center; }
.mantis-login-heading p { margin: 0; color: #626d7b; font-size: 16px; }
.mantis-login-heading .mantis-login-brand { margin-bottom: 20px; color: #526274; font-weight: 500; }
.mantis-login-heading h2 { margin: 0 0 10px; font-size: 36px; font-weight: 500; line-height: 1.2; }
.mantis-login-card .form-group { margin-bottom: 24px; }
.mantis-login-card label { margin-bottom: 8px; font-size: 16px; font-weight: 500; text-transform: none !important; }
.mantis-login-input { position: relative; }
.mantis-login-card .form-control { height: 54px; padding: 12px 14px !important; border: 1px solid #8592a0; border-radius: 10px; font-size: 16px; color: #263238; }
.mantis-login-input .form-control { padding-left: 46px !important; }
.mantis-login-input #login-password { padding-right: 54px !important; }
.mantis-login-card .form-control::placeholder { color: #697586; opacity: 1; }
.mantis-login-card svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mantis-login-field-icon { position: absolute; left: 15px; top: 16px; color: #596779; pointer-events: none; }
.mantis-login-password-toggle { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #596779; }
.mantis-login-password-toggle[hidden] { display: none; }
.mantis-login-password-toggle:hover { background: #edf3f8; }
.mantis-login-card .mantis-login-submit { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; margin-top: 8px; border-radius: 9px; background: #1976d2; border-color: #1976d2; font-size: 17px; font-weight: 500; text-transform: none !important; }
.mantis-login-card .mantis-login-submit:hover { background: #1565c0; border-color: #1565c0; }
.mantis-login-card .form-control:focus,
.mantis-login-card button:focus-visible { outline: 3px solid #2196f3; outline-offset: 3px; border-color: #1976d2; }
.mantis-login-card .alert { overflow-wrap: anywhere; }
/* Keep the footer below the form, including when the mobile keyboard is open. */
.mantis-login > .footer { position: static !important; width: 100%; }
.mantis-login .footer-menu { display: none !important; }
.mantis-login #footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    height: auto !important;
    padding: 6px 20px;
}
.mantis-login #footer:before, .mantis-login #footer:after { display: none; }
.mantis-login #footer .navbar-text,
.mantis-login #footer .navbar-nav,
.mantis-login #footer .navbar-right { float: none !important; margin: 0 !important; }
.mantis-login #footer .navbar-nav > li > a { padding: 0; }
.mantis-login #footer .navbar-text { overflow-wrap: anywhere; min-width: 0; }
@media (min-width: 1921px) {
    .mantis-login-main { background-image: url("../images/backgrounds/login-orden-desktop-large.aaacd3cdc635.webp"); }
}
@media (max-width: 1024px) {
    .mantis-login-main { gap: 32px; padding: 40px 5%; }
    .mantis-login-card { flex-basis: 400px; padding: 36px 28px; }
}
@media (max-width: 900px) {
    .mantis-login-main {
        flex-direction: column;
        justify-content: center;
        padding: 32px 20px;
        background-image: url("../images/backgrounds/login-orden-mobile.4411a65f46d5.webp");
    }
    .mantis-login-welcome { flex: none; text-align: center; }
    .mantis-login-welcome h1 { font-size: 28px; margin-bottom: 10px; }
    .mantis-login-welcome p { font-size: 16px; }
    .mantis-login-card { flex: none; width: 440px; padding: 32px 24px; }
    .mantis-login-heading { margin-bottom: 28px; }
    .mantis-login-heading h2 { font-size: 32px; }
    .mantis-login #footer { font-size: 12px; padding: 8px 16px; }
}
@media (max-width: 360px) {
    .mantis-login-main { padding: 24px 12px; }
    .mantis-login-card { padding: 28px 20px; }
    .mantis-login-welcome h1 { font-size: 25px; }
}
@media (max-height: 600px) and (max-width: 767px) {
    .mantis-login-welcome { display: none; }
    .mantis-login-main { padding-top: 24px; padding-bottom: 24px; }
}
