/**
 * Login Moderno - ATRAPE SISTEMAS
 * Diseño inspirado en DOARENSPOS
 * Bootstrap 4.3.1 Compatible
 * IMPORTANTE: NO afecta lógica de autenticación
 */

/* ============================================
   LAYOUT GENERAL
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Fondo base + capas (vidrio / mesh) — login & prevsede — tonos claros */
.radial-gradient {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(145deg, #f3f8fc 0%, #e8f0f9 32%, #eef5fb 58%, #faf7f2 100%);
}

/* Centrado real sin romper el grid de Bootstrap */
.radial-gradient > .position-relative.z-index-5 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.radial-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    opacity: 1;
    z-index: 0;
    /* Velo tipo vidrio: difumina el degradado inferior y aporta “frosted” */
    background:
        radial-gradient(ellipse 120% 80% at 10% 0%, rgba(255, 255, 255, 0.72), transparent 55%),
        radial-gradient(ellipse 90% 70% at 88% 12%, rgba(186, 230, 253, 0.42), transparent 50%),
        radial-gradient(circle at 72% 88%, rgba(254, 240, 138, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(241, 245, 249, 0.15) 100%);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    animation: atrLoginGlassShift 22s ease-in-out infinite;
}

.radial-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: soft-light;
    /* Pattern sutil inspirado en íconos gastronómicos (SVG en data URI) */
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2780%27%20height%3D%2780%27%20viewBox%3D%270%200%2080%2080%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%238aa3bf%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M18%2010v20%27/%3E%3Cpath%20d%3D%27M14%2030c0%206%208%206%208%200%27/%3E%3Cpath%20d%3D%27M22%2010v20%27/%3E%3Cpath%20d%3D%27M38%2020l10%2020%27/%3E%3Cpath%20d%3D%27M48%2040h10%27/%3E%3Cpath%20d%3D%27M60%2018c6%207%206%2016%200%2023%27/%3E%3Cpath%20d%3D%27M52%2046c5%202%209%206%2012%2012%27/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 120px 120px;
    filter: blur(0.35px);
}

/* Brillo suave que se desplaza (refuerza sensación de vidrio) */
@keyframes atrLoginGlassShift {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.92;
        filter: brightness(1.06);
    }
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   PANEL IZQUIERDO - FORMULARIO
   ============================================ */
.authentication-login {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 34px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.authentication-login.login-glass-card {
    /* Fuerza un ancho “tipo tarjeta” incluso si Bootstrap no aplica col-* en xs */
    flex: 0 0 auto;
    width: min(420px, 92vw);
    max-width: 420px;
    min-height: 470px; /* sensación más cuadrada como la muestra */
}

.auth-max-width {
    width: 100%;
    max-width: none;
    text-align: center;
}

/* Texto pequeño arriba */
.login-subtitle {
    font-size: 0.875rem;
    color: #ffffff !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-subtitle .text-danger {
    color: #ffd166 !important;
    font-weight: 700;
}

/* Título grande */
.login-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 1.3rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* Logo centrado */
.login-logo-container {
    text-align: center;
    margin-bottom: 1.8rem;
}

.login-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================
   FORMULARIO
   ============================================ */
.login-form {
    margin-top: 0;
}

.form-group-login {
    margin-bottom: 1.25rem;
}

.login-label {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    height: 46px;
}

.login-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

/* Mensajes de validación RUC */
.login-success-msg {
    color: #28a745;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

.login-error-msg {
    color: #ffc107;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

/* Checkbox */
.form-check-login {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.login-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #ffd166;
}

.login-checkbox-label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

/* Botón principal login — pastilla / pill */
.btn-login {
    width: 100%;
    padding: 15px 28px;
    border: none !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-bottom: 1.25rem;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 38%, #0891b2 100%) !important;
    box-shadow:
        0 4px 14px rgba(13, 148, 136, 0.35),
        0 12px 32px rgba(8, 145, 178, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #06b6d4 100%) !important;
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(13, 148, 136, 0.42),
        0 18px 40px rgba(8, 145, 178, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    filter: brightness(1.03);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px rgba(13, 148, 136, 0.35),
        inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn-login:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.95),
        0 0 0 6px rgba(13, 148, 136, 0.45);
}

/* ============================================
   SECCIÓN MULTIMOZO
   ============================================ */
.login-multimozo-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.multimozo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
}

.multimozo-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
    line-height: 1.4;
}

.btn-multimozo {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    appearance: none;
    -webkit-appearance: none;
}

.btn-multimozo:hover {
    background: rgba(255, 255, 255, 0.30);
    transform: scale(1.05);
    color: #ffffff;
}

.btn-multimozo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.multimozo-link {
    text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.login-footer {
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    text-align: center;
}

.footer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: #ffd166;
}

/* ============================================
   PANEL DERECHO - IMAGEN
   ============================================ */
.login-image-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-image-panel img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ============================================
   UTILIDADES
   ============================================ */
.z-index-5 {
    z-index: 5 !important;
}

.bg-body {
    background-color: #ffffff !important;
}

/* ============================================
   COMPATIBILIDAD CON ESTILOS EXISTENTES
   ============================================ */
/* Mantener compatibilidad con clases originales */
#frm-login {
    /* Formulario mantiene su funcionalidad */
}

#frm-login .form-group {
    margin-bottom: 1rem;
}

/* Asegurar que los inputs mantengan sus estilos cuando se aplican clases originales */
.form-input.login-input {
    /* Compatibilidad con clase original form-input */
}

.btnRadio.btn-login {
    /* Compatibilidad con clase original btnRadio */
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199.98px) {
    .login-image-panel {
        display: none !important;
    }
    
    .authentication-login {
        padding: 40px 30px;
    }
}

@media (max-width: 767.98px) {
    .authentication-login {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .auth-max-width {
        max-width: 100%;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-logo {
        max-width: 150px;
    }
    
    .btn-login {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
}

/* ============================================
   ATRAPE SIGN UP / LOGIN MOCK STYLE
   (No afecta lógica; solo UI)
   ============================================ */
.atr-login-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 22px 60px rgba(2, 132, 199, 0.18) !important;
}

.atr-login-card .login-subtitle {
    color: #64748b !important;
    font-weight: 600;
}

.atr-login-card .login-subtitle .text-danger {
    color: #0ea5e9 !important;
    font-weight: 700;
}

.atr-login-card .login-title {
    color: #0f172a !important;
    font-weight: 800;
    margin-bottom: 1rem;
}

.atr-login-card .login-label {
    color: #475569 !important;
}

.atr-login-card .login-input {
    background: #f8fafc !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    color: #0f172a !important;
}

.atr-login-card .login-input::placeholder {
    color: #94a3b8 !important;
}

.atr-login-card .login-input:focus {
    border-color: rgba(14, 165, 233, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

/* Iconos dentro del campo */
.atr-input-icon-wrap {
    position: relative;
}

.atr-input-icon-wrap .atr-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0ea5e9;
    font-size: 1.12rem;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
}

.atr-input-icon-wrap .login-input {
    padding-left: 46px !important;
}

/* Checkbox */
.atr-login-card .login-checkbox-label {
    color: #64748b !important;
}

/* Bloque de social buttons */
.atr-login-social-title {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 12px;
}

.atr-login-social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.atr-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    color: #ffffff;
}

.atr-social-btn .atr-social-svg-logo {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.atr-social-btn i {
    font-size: 1.28rem;
    line-height: 1;
    color: #ffffff;
}

.atr-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    filter: brightness(1.08);
}

.atr-social-btn.atr-facebook {
    background: #1877f2;
}

.atr-social-btn.atr-tiktok {
    background: #000000;
}

/* Icono TikTok: path más grueso y centrado (viewBox 448×512) */
.atr-social-btn.atr-tiktok .atr-social-svg-tiktok {
    width: 24px;
    height: 24px;
}

.atr-social-btn.atr-whatsapp {
    background: #25d366;
}

/* Multimozo dentro de la tarjeta blanca */
.atr-login-card .login-multimozo-section {
    border-top: 1px solid rgba(226, 232, 240, 1);
}

.atr-login-card .multimozo-title {
    color: #0f172a;
}

.atr-login-card .multimozo-subtitle {
    color: #64748b;
}

.atr-login-card .btn-multimozo {
    background: rgba(248, 250, 252, 1) !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important;
}

.atr-login-card .btn-multimozo:hover {
    background: rgba(255, 255, 255, 1) !important;
}

/* Panel multimozo dentro del modal de credenciales (misma línea que tarjeta) */
.atr-login-modal-content .atr-modal-multimozo.login-multimozo-section {
    border-top: 1px solid rgba(226, 232, 240, 1);
    margin-top: 1rem;
    padding-top: 1rem;
}

.atr-login-modal-content .atr-modal-multimozo .multimozo-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.atr-login-modal-content .atr-modal-multimozo .multimozo-subtitle {
    color: #64748b;
    font-size: 0.82rem;
}

.atr-login-modal-content .atr-modal-multimozo .btn-multimozo {
    background: rgba(248, 250, 252, 1) !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important;
}

.atr-login-modal-content .atr-modal-multimozo .btn-multimozo:hover {
    background: rgba(255, 255, 255, 1) !important;
}

/* Boton Ingresar / Continuar (sobre Bootstrap btn-primary) */
.atr-login-card .btn-login {
    border-radius: 999px !important;
    border: none !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 38%, #0891b2 100%) !important;
    box-shadow:
        0 4px 14px rgba(13, 148, 136, 0.35),
        0 12px 32px rgba(8, 145, 178, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.atr-login-card .btn-login:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #06b6d4 100%) !important;
    filter: brightness(1.03);
}

.atr-login-credits {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 1);
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Login solo modales: sin tarjeta de cristal de fondo */
body.atr-login-page-minimal .login-wrapper {
    overflow: visible;
}

.atr-login-bg-layer {
    overflow: hidden;
    position: relative;
}

/* Fallback si el navegador no soporta backdrop-filter en el velo */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .radial-gradient::before {
        opacity: 0.85;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.atr-login-page-credits {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 14px 12px 18px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(71, 85, 105, 0.95);
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.atr-login-page-credits .small {
    color: rgba(100, 116, 139, 0.95);
}

/* Elegir sede (prevsede): misma anchura que el modal del login */
.atr-prev-sede-card {
    width: min(400px, 94vw);
    max-width: 400px;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(248, 250, 252, 0.62) 48%,
        rgba(241, 245, 249, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.08),
        0 24px 64px rgba(30, 41, 59, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.atr-prev-sede-card .modal-title {
    color: #0f172a;
    font-weight: 700;
}

.atr-prev-sede-card .login-label {
    color: #475569 !important;
}

.atr-prev-sede-card .login-input:disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.atr-prev-sede-select.form-select {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.95rem;
}

.atr-prev-sede-select:focus {
    border-color: rgba(14, 165, 233, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

.atr-prev-sede-card .btn-login {
    border-radius: 999px !important;
    border: none !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 38%, #0891b2 100%) !important;
    box-shadow:
        0 4px 14px rgba(13, 148, 136, 0.35),
        0 12px 32px rgba(8, 145, 178, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    font-weight: 700 !important;
}

.atr-prev-sede-card .btn-login:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #06b6d4 100%) !important;
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.atr-prev-sede-card .atr-modal-brand .login-subtitle {
    color: #475569 !important;
}

.atr-prev-sede-card .atr-modal-brand .login-subtitle .text-danger {
    color: #d97706 !important;
}

/*
 * Modales: deben quedar SIEMPRE por encima del hero lateral (z-index 1060).
 * El modal RUC estaba en 1055 y quedaba tapado por .atr-login-main .atr-login-hero → no se veía el formulario.
 */
.modal.atr-login-ruc-modal {
    z-index: 1100;
}

#modalRucLogin.modal.show {
    z-index: 1100 !important;
}

/* Login con modales: backdrop entre hero y modal (visible pero no tapa el formulario) */
body.atr-login-page-minimal .modal-backdrop.show {
    z-index: 1095 !important;
    opacity: 0.18 !important;
    background: #8fa4bc !important;
}

/* Segundo modal por encima del primero y del hero */
#modalCredencialesLogin.modal.show {
    z-index: 1110 !important;
}

.modal.atr-login-ruc-modal .modal-dialog {
    pointer-events: auto;
    transition: none !important;
    transform: none !important;
}

/* Modal paso 1 — RUC (misma línea visual que la tarjeta) */
.atr-login-ruc-modal .modal-dialog {
    max-width: min(400px, 94vw);
}

/* Sin transición tipo “fade” de Bootstrap: el panel queda fijo como el recuadro de mensaje */
.atr-login-ruc-modal.fade .modal-dialog {
    transition: none !important;
    transform: none !important;
}

.atr-login-modal-content {
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(248, 250, 252, 0.68) 45%,
        rgba(241, 245, 249, 0.58) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.1),
        0 28px 72px rgba(30, 41, 59, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) saturate(1.28);
    -webkit-backdrop-filter: blur(24px) saturate(1.28);
}

/*
 * Modales RUC + credenciales: vidrio CLARO (blanco leche), sin animación — coherente con fondo luminoso.
 * prevsede (.atr-prev-sede-card) no usa .atr-login-ruc-modal → no se pisa.
 */
.atr-login-ruc-modal .atr-login-modal-content {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(252, 253, 255, 0.9) 42%,
        rgba(248, 250, 252, 0.86) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        0 4px 28px rgba(15, 23, 42, 0.07),
        0 22px 56px rgba(30, 41, 59, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(22px) saturate(1.12);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.atr-login-ruc-modal .atr-login-modal-content .modal-title {
    color: #0f172a !important;
}

.atr-login-ruc-modal .atr-modal-brand .login-subtitle {
    color: #475569 !important;
}

.atr-login-ruc-modal .atr-modal-brand .login-subtitle .text-danger {
    color: #d97706 !important;
}

.atr-login-ruc-modal .atr-login-modal-content .login-label {
    color: #475569 !important;
}

.atr-login-ruc-modal .atr-login-modal-content .text-muted {
    color: #64748b !important;
}

.atr-login-ruc-modal .atr-login-modal-content .login-input {
    background: #f8fafc !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    color: #0f172a !important;
}

.atr-login-ruc-modal .atr-login-modal-content .login-input::placeholder {
    color: #94a3b8 !important;
}

.atr-login-ruc-modal .atr-input-icon-wrap .atr-input-icon {
    color: #0ea5e9 !important;
}

.atr-login-ruc-modal .login-success-msg {
    color: #15803d !important;
}

.atr-login-ruc-modal .login-error-msg {
    color: #ca8a04 !important;
}

.atr-login-ruc-modal .atr-login-social-title {
    color: #94a3b8 !important;
}

.atr-login-ruc-modal .form-check-label.login-checkbox-label {
    color: #475569 !important;
}

.atr-login-ruc-modal .form-check-input {
    border-color: rgba(148, 163, 184, 0.85);
    background-color: #ffffff;
}

.atr-login-ruc-modal .atr-modal-multimozo .multimozo-title {
    color: #0f172a !important;
}

.atr-login-ruc-modal .atr-modal-multimozo .multimozo-subtitle {
    color: #64748b !important;
}

.atr-login-ruc-modal .atr-modal-multimozo .btn-multimozo {
    background: rgba(248, 250, 252, 1) !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
}

.atr-login-ruc-modal .atr-modal-multimozo .btn-multimozo:hover {
    background: #ffffff !important;
    color: #0f172a !important;
}

.atr-login-modal-content .modal-body {
    background: transparent;
}

.atr-login-modal-content .modal-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: none !important;
    padding-bottom: 0.15rem;
}

.atr-login-modal-content .login-label {
    color: #475569 !important;
}

.atr-login-modal-content .login-input {
    background: #f8fafc !important;
    border: 1px solid rgba(226, 232, 240, 1) !important;
    color: #0f172a !important;
}

.atr-login-modal-content .login-input::placeholder {
    color: #94a3b8 !important;
}

.atr-login-modal-content .btn-login,
.atr-login-modal-content .btn.btn-primary.btn-login {
    border-radius: 999px !important;
    border: none !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 38%, #0891b2 100%) !important;
    box-shadow:
        0 4px 14px rgba(13, 148, 136, 0.35),
        0 12px 32px rgba(8, 145, 178, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.atr-login-modal-content .btn-login:hover,
.atr-login-modal-content .btn.btn-primary.btn-login:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #06b6d4 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.atr-modal-brand .login-subtitle {
    color: #475569 !important;
}

.atr-modal-brand .login-subtitle .text-danger {
    color: #d97706 !important;
}

.atr-modal-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: inline-block;
}

#modalCredencialesLogin .btn-link {
    color: #0ea5e9 !important;
    vertical-align: baseline;
}

/* ===== Hero lateral (login / prevsede) ===== */
.atr-login-hero {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: min(1120px, 96vw);
    margin: auto;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 24px 10px;
}

.atr-login-hero-left {
    width: min(440px, 94vw);
    min-height: 520px;
    flex: 0 0 auto;
}

.atr-login-hero-right {
    width: min(420px, 40vw);
    flex: 0 0 auto;
    margin-left: 18px;
}

/* Solo pantalla principal login: panel fijo y sin interacción */
.atr-login-main .atr-login-hero {
    position: fixed;
    inset: 0;
    z-index: 1060;
    min-height: 100vh;
    pointer-events: none;
}

.atr-login-main .atr-login-hero-left {
    visibility: hidden;
}

/* Mover modal principal un poco a la izquierda en desktop */
.atr-login-main .atr-login-ruc-modal .modal-dialog {
    margin-left: calc(50% - 460px);
    margin-right: auto;
}

.atr-side-message {
    color: #f1f5f9;
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.42) 0%,
        rgba(15, 23, 42, 0.38) 50%,
        rgba(51, 65, 85, 0.35) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 24px 26px;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.atr-side-message h3 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Forzar título motivacional en blanco (evita overrides globales) */
#atr-msg-title {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.28);
}

.atr-side-message p {
    margin: 0 0 8px;
    color: rgba(241, 245, 249, 0.96);
    font-size: 1.06rem;
    line-height: 1.45;
    font-weight: 500;
}

.atr-side-message .atr-side-quote {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 3px solid #facc15;
    color: #fde68a;
    font-style: italic;
    font-weight: 700;
}

.atr-side-message .atr-side-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.96rem;
    font-weight: 800;
    color: #dcfce7;
}

.atr-side-message .atr-side-badge i {
    color: #bbf7d0;
}

.atr-side-message.is-changing {
    opacity: 0.55;
    transform: translateY(3px);
}

@media (max-width: 991.98px) {
    .atr-login-hero-right {
        display: none;
    }
    .atr-login-hero {
        min-height: 72vh;
    }
    .atr-login-main .atr-login-ruc-modal .modal-dialog {
        margin-left: auto;
        margin-right: auto;
    }
}
