.login-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #07111f; }
.login-scene { background: linear-gradient(110deg, rgba(2,8,23,.78), rgba(8,47,73,.55)), url('../images/quesafoto1.webp') center center / cover no-repeat; }
.login-grid { opacity: .08; background-size: 48px 48px; }
.login-wrapper { width: min(765px, 100%); max-width: 765px; min-height: 540px; grid-template-columns: minmax(0, 424px) minmax(0, 341px); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; box-shadow: 0 32px 90px rgba(2,8,23,.45); }
.login-showcase { min-height: 540px; padding: 36px 34px; background: linear-gradient(145deg, rgba(15,23,42,.93), rgba(14,116,144,.72)); backdrop-filter: blur(1px); }
.showcase-logo { width: 38px; height: 38px; display: grid; place-items: center; color: #062b2a; background: #5eead4; border-radius: 11px; }
.showcase-logo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.showcase-brand i { color: inherit; font-size: 20px; }
.showcase-copy .login-kicker { color: #f59e0b; }
.showcase-copy h1 { max-width: none; font-size: 29px; text-align: left; white-space: nowrap; }
.showcase-copy p { text-align: left; }
.showcase-copy p { color: #dbeafe; }
.showcase-features { color: #f8fafc; }
.showcase-features i { color: #5eead4; }
.showcase-footer { color: #cbd5e1; }
.status-dot { background: #2dd4bf; }
.login-card { padding: 34px 30px 24px; background: #fff; }
.login-brand { margin-bottom: 28px; }
.login-brand .login-icon { color: #0f766e; background: #ccfbf1; }
.login-brand .login-brand-logo { width: 58px; height: 58px; padding: 0; overflow: hidden; background: #fff; border: 1px solid #ccfbf1; box-shadow: 0 8px 22px rgba(15,118,110,.14); }
.login-brand-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.login-brand .login-kicker { display: inline-flex; align-items: center; gap: 5px; color: #0f766e; }
.login-brand h2 { color: #172033; font-size: 25px; }
.login-brand p { color: #475569; font-weight: 500; }
.login-card .form-label { color: #243047; font-size: 12.5px; font-weight: 800; }
.login-card .input-group-text { color: #334155; background: #f8fafc; border-color: #94a3b8; }
.login-card .form-control { min-height: 48px; }
.login-card .form-control { color: #172033; border-color: #94a3b8; font-weight: 600; }
.login-card .form-control::placeholder { color: #64748b; opacity: 1; font-weight: 500; }
.login-card .form-control:focus { border-color: #2dd4bf; box-shadow: 0 0 0 .22rem rgba(15,118,110,.12); }
.login-card .login-password-toggle { position: static; display: inline-grid; place-items: center; flex: 0 0 46px; width: 46px; height: 48px; padding: 0; color: #0f766e; background: #ecfdf5; border: 1px solid #94a3b8; border-left: 0; border-radius: 0 10px 10px 0; box-shadow: none; }
.login-card .login-password-toggle:hover, .login-card .login-password-toggle:focus { color: #fff; background: #0f766e; border-color: #0f766e; box-shadow: none; }
.login-options { min-height: 32px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: -2px 0 10px; }
.login-options .form-check { display: flex; align-items: center; gap: 7px; margin: 0; color: #334155; font-size: 12px; font-weight: 700; cursor: pointer; }
.login-options .form-check-input { width: 16px; height: 16px; margin: 0; border: 1.5px solid #64748b; }
.login-options .form-check-input:checked { background-color: #0f766e; border-color: #0f766e; }
.login-help { color: #94a3b8; font-size: 10.5px; white-space: nowrap; }
.login-submit { min-height: 49px; background: linear-gradient(135deg, #0f766e, #0e7490); border: 0; box-shadow: 0 8px 18px rgba(15,118,110,.22); }
.login-submit:hover { background: linear-gradient(135deg, #115e59, #155e75); transform: translateY(-1px); }
.login-trust { display: flex; justify-content: center; gap: 18px; margin-top: 22px; color: #52627a; font-size: 10.5px; font-weight: 700; }
.login-trust span { display: inline-flex; align-items: center; gap: 5px; }
.login-trust i { color: #0f766e; }
@media (max-width: 820px) { .login-body { padding: 16px; }.login-wrapper { width: min(480px,100%); min-height: 0; }.login-card { padding: 40px 34px 28px; } }
@media (max-width: 430px) { .login-card { padding: 34px 23px 24px; }.login-options { align-items: flex-start; flex-direction: column; gap: 6px; }.login-trust { gap: 10px; } }

/* Login compacto para que la pantalla completa se vea sin desplazamiento en escritorio. */
.login-body { min-height:100dvh; padding:16px; overflow:hidden; }
.login-wrapper { width:min(765px,100%); max-width:765px; min-height:0; height:min(560px,calc(100dvh - 32px)); grid-template-columns:minmax(0,424px) minmax(0,341px); border-radius:22px; }
.login-showcase { min-height:0; padding:28px 34px; }
.showcase-logo { width:35px; height:35px; }
.showcase-brand { font-size:16px; }
.showcase-copy { margin:auto 0 20px; }
.showcase-copy h1 { margin:8px 0 11px; font-size:27px; line-height:1.06; }
.showcase-copy p { margin:0; font-size:13px; line-height:1.55; }
.showcase-features { gap:9px; font-size:12px; }
.showcase-footer { padding-top:20px; font-size:11px; }
.login-card { padding:24px 30px 18px; overflow:auto; }
.login-brand { margin-bottom:16px; }
.login-brand .login-brand-logo { width:46px; height:46px; margin-bottom:11px; }
.login-brand h2 { margin:5px 0 3px; font-size:23px; }
.login-brand p { margin:0; font-size:12.5px; line-height:1.4; }
.login-card .form-label { margin-bottom:5px; font-size:12px; }
.login-card .mb-3 { margin-bottom:.7rem !important; }
.login-card .form-control, .login-card .login-password-toggle { min-height:44px; height:44px; }
.login-card .input-group-text { width:42px; }
.login-card .login-password-toggle { flex-basis:42px; width:42px; }
.login-options { min-height:24px; margin:0 0 7px; }
.login-submit { min-height:44px; }
.login-trust { margin-top:13px; font-size:10px; }
.login-inline-alert { padding:8px 9px; margin-top:10px; font-size:11px; }
@media (max-height:620px) and (min-width:821px) { .login-wrapper { height:calc(100dvh - 20px); }.login-body { padding:10px; }.login-showcase { padding:22px 30px; }.showcase-features { gap:6px; }.showcase-footer { padding-top:12px; } }
@media (max-width:820px) { .login-body { overflow:auto; }.login-wrapper { height:auto; }.login-card { overflow:visible; } }
/* Variante editorial: mensaje integrado al fondo y una única tarjeta de acceso flotante. */
.login-body { background:#081828; }
.login-scene { background:linear-gradient(90deg,rgba(5,17,31,.90) 0%,rgba(6,25,41,.76) 47%,rgba(6,20,33,.45) 100%),url('../images/quesafoto1.webp') center/cover no-repeat; }
.login-grid { opacity:.055; }
.login-wrapper { width:min(1040px,100%); max-width:1040px; height:auto; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 360px; align-items:center; gap:70px; overflow:visible; border:0; border-radius:0; box-shadow:none; }
.login-showcase { min-height:0; padding:0; background:transparent; }
.showcase-brand { margin-bottom:0; font-size:18px; }
.showcase-copy { max-width:500px; margin:46px 0 28px; }
.showcase-copy .login-kicker { color:#5eead4; }
.showcase-copy h1 { margin:10px 0 14px; color:#fff; font-size:clamp(31px,3.4vw,43px); line-height:1.04; white-space:normal; text-shadow:0 3px 18px rgba(0,0,0,.2); }
.showcase-copy p { max-width:410px; color:#dbeafe; font-size:14px; line-height:1.65; }
.showcase-features { max-width:330px; padding-top:21px; border-top:1px solid rgba(255,255,255,.18); color:#e2e8f0; font-size:12px; }
.showcase-footer { padding-top:25px; }
.login-card { min-height:0; padding:30px 31px 23px; background:rgba(255,255,255,.97); border:1px solid rgba(255,255,255,.8); border-radius:20px; box-shadow:0 22px 52px rgba(0,0,0,.29); backdrop-filter:blur(14px); overflow:visible; }
.login-brand { margin-bottom:20px; }
.login-brand .login-brand-logo { width:45px; height:45px; margin-bottom:11px; }
.login-brand h2 { font-size:24px; }
.login-trust { padding-top:13px; margin-top:13px; border-top:1px solid #e2e8f0; }
@media (max-width:820px) { .login-wrapper { width:min(400px,100%); display:block; }.login-showcase { display:none; }.login-card { padding:30px 27px 23px; } }
/* Identidad TOTAL FITNESS: emblema circular y foto institucional. */
.showcase-logo {
    width: 126px;
    height: 80px;
    padding: 1px;
    flex: 0 0 126px;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.98);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.38), 0 0 0 3px rgba(20,184,166,.22);
}
.showcase-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    transform: scale(1.25);
    transform-origin: center;
}
.login-scene {
    background: linear-gradient(90deg, rgba(5,17,31,.91) 0%, rgba(6,25,41,.77) 47%, rgba(6,20,33,.48) 100%), url('../images/quesafoto1.webp') center / cover no-repeat;
}
/* Cinta de marca: separa y resalta TOTAL FITNESS sobre la fotografía. */
.showcase-brand {
    position: relative;
    z-index: 0;
    align-self: flex-start;
    width: fit-content;
    padding: 9px 19px 9px 10px;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .015em;
    word-spacing: .3em;
    text-shadow: 0 2px 10px rgba(0,0,0,.42);
}
.showcase-brand::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -7px -19px -7px -10px;
    background: linear-gradient(100deg, rgba(8,35,53,.96), rgba(13,116,114,.88));
    border: 1px solid rgba(94,234,212,.5);
    border-left: 4px solid #5eead4;
    border-radius: 0 12px 12px 0;
    clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
    box-shadow: 0 10px 24px rgba(0,0,0,.32);
}
/* La marca se conserva dentro de la tarjeta cuando la portada se oculta en móvil. */
.mobile-gym-brand { display: none; }
@media (max-width:820px) {
    .mobile-gym-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: fit-content;
        max-width: 100%;
        margin: -8px auto 24px;
        padding: 7px 10px;
        color: #0f4c5c;
        background: linear-gradient(100deg, #ecfeff, #f0fdfa);
        border: 1px solid #99f6e4;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .03em;
        word-spacing: .28em;
    }
    .mobile-gym-brand img {
        width: 74px;
        height: 44px;
        object-fit: contain;
        border-radius: 6px;
        transform: none;
    }
    .login-brand .login-brand-logo { margin-bottom: 8px; }
}
/* En móvil se replica exactamente la cinta oscura de la marca de escritorio. */
@media (max-width:820px) {
    .mobile-gym-brand {
        position: relative;
        z-index: 0;
        padding: 9px 19px 9px 10px;
        gap: 12px;
        color: #fff;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .015em;
        word-spacing: .3em;
        text-shadow: 0 2px 10px rgba(0,0,0,.42);
    }
    .mobile-gym-brand::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset: -7px -19px -7px -10px;
        background: linear-gradient(100deg, rgba(8,35,53,.96), rgba(13,116,114,.88));
        border: 1px solid rgba(94,234,212,.5);
        border-left: 4px solid #5eead4;
        border-radius: 0 12px 12px 0;
        clip-path: polygon(0 50%, 6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%);
        box-shadow: 0 10px 24px rgba(0,0,0,.32);
    }
}