/* recursos/css/login.css — v4.0 fully responsive */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --panel-bg: #ffffff;
    --body-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --radius: 20px;

    /* Colores extra para el mockup */
    --accent-soft: rgba(37, 99, 235, 0.08);
    --success-soft: rgba(34, 197, 94, 0.1);
    --success: #22c55e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0, transparent 40%),
        radial-gradient(at 50% 0%, rgba(168, 85, 247, 0.06) 0, transparent 45%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.08) 0, transparent 40%);
    height: 100dvh;             /* fijo al viewport — sin scroll en login */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vh, 2rem) clamp(0.75rem, 2vw, 1.5rem);
    position: relative;
    overflow: hidden;           /* CERO scroll en la página de login */
}

/* --- ORBES DE LUZ DE CORONACIÓN (GLOWING ORBS) --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    /* Reducida la opacidad para fondos claros */
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(99, 102, 241, 0.25) 50%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -50px;
    animation: floatOrb1 15s ease-in-out infinite alternate;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(6, 182, 212, 0.2) 50%, rgba(255, 255, 255, 0) 70%);
    bottom: -80px;
    left: -80px;
    animation: floatOrb2 18s ease-in-out infinite alternate;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.15) 60%, rgba(255, 255, 255, 0) 75%);
    top: 30%;
    left: 45%;
    animation: floatOrb3 12s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 30px) scale(1.1);
    }
}

@keyframes floatOrb2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, -40px) scale(1.15);
    }
}

@keyframes floatOrb3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(25px, -25px) scale(0.9);
    }
}

/* --- CONTENEDOR PRINCIPAL DEL LOGIN --- */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1080px;
    /* La altura máxima del card nunca supera el viewport disponible */
    max-height: calc(100dvh - clamp(2rem, 5vh, 4rem));
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    box-shadow:
        0 4px 30px rgba(15, 23, 42, 0.015),
        0 15px 35px -10px rgba(15, 23, 42, 0.05),
        0 30px 60px -15px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* --- PANEL IZQUIERDO (HERO VISUAL) --- */
.login-brand {
    flex: 1.25;
    background: linear-gradient(145deg, #090e1a 0%, #151e33 60%, #0d1527 100%);
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius) 0 0 var(--radius);
}

.login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* Grilla sutil en el panel oscuro */
.login-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.brand-deco {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.02);
    top: -200px;
    right: -200px;
    pointer-events: none;
    z-index: 0;
}

.brand-deco-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.01);
    bottom: -100px;
    left: -50px;
    pointer-events: none;
    z-index: 0;
}

.brand-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-header {
    margin-bottom: 2rem;
}

.badge-system {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--success);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

.hero-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 1.8rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-body h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.8px;
    background: linear-gradient(to right, #ffffff 60%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* fallback estándar para background-clip:text */
}

.hero-body p {
    font-size: 0.925rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    max-width: 380px;
}

/* --- DASHBOARD MOCKUP EN EL HERO --- */
.hero-dashboard-mockup {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    perspective: 1000px;
}

.mockup-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
    border-color: rgba(37, 99, 235, 0.2);
}

.mockup-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.mockup-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.mockup-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
}

.mockup-card-badge.positive {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.mockup-chart-container {
    margin-bottom: 0.8rem;
}

.mockup-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.line-animate-1 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLineChart 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLineChart {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-dot {
    animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
    0% {
        r: 4.5;
        opacity: 0.7;
    }

    100% {
        r: 6;
        opacity: 1;
    }
}

.mockup-card-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
}

.mockup-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.mockup-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.mockup-value-sm {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
}

.text-danger-soft {
    color: #fca5a5 !important;
}

.mockup-widgets {
    display: flex;
    gap: 1rem;
}

.mini-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(17, 24, 39, 0.45);
    border-radius: 12px;
}

.mini-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mini-card-icon.active {
    background: rgba(34, 197, 94, 0.1);
}

.mini-card-info {
    display: flex;
    flex-direction: column;
}

.brand-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-footer .footer-text {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
}

/* --- PANEL DERECHO (FORMULARIO) --- */
.login-form-panel {
    flex: 1;
    padding: clamp(1.75rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    position: relative;
    z-index: 2;
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow: hidden;
}

.login-form-body-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    margin: clamp(0.5rem, 2vh, 1.5rem) 0;
}

.login-logo-centered {
    display: flex;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.brand-logo-circle {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.08),
        0 2px 6px rgba(37, 99, 235, 0.03);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-circle img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-logo-circle:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.badge-portal {
    display: inline-block;
    align-self: center;
    background-color: #eff6ff;
    color: var(--accent);
    border: 1px solid #dbeafe;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.8rem;
}

.form-header {
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Alerta de Error Premium */
.alert-custom-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.825rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.03);
}

.alert-custom-danger i {
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Campos de entrada con icono */
.input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.input-wrapper:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: #ffffff;
}

.input-wrapper .input-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: color 0.25s;
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent);
}

.input-wrapper input {
    flex: 1;
    height: 48px;
    background: transparent;
    padding: 0 1rem 0 0.5rem;
    /* space on the right, and breathing room from the icon on the left */
    border: none;
    outline: none;
    color: var(--text-dark);
    font-size: 0.925rem;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-wrapper .btn-toggle-pass {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.25s;
}

.input-wrapper .btn-toggle-pass:hover {
    color: var(--text-dark);
}

/* Opciones de Formulario (Recordarme / Recuperar) */
.form-options {
    margin-bottom: 2rem;
}

.custom-checkbox .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-checkbox .form-check-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    padding-left: 0.25rem;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Botón Submit Premium */
.btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: all 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, var(--accent-hover) 0%, #1533b4 100%);
}

.btn-submit:hover .icon-arrow {
    transform: translateX(4px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.icon-arrow {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

/* Términos en Formulario */
.form-footer-terms {
    margin-top: 2.2rem;
}

.form-footer-terms p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

.form-footer-terms a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-footer-terms a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- ESTILOS EXCLUSIVOS DEL MODAL DE RECUPERACIÓN --- */
.modal-content {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    padding: 1rem;
}

.recovery-icon-circle {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.75rem;
    border: 1px solid #dbeafe;
}

.alert-custom-info {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    color: #0369a1;
}

.alert-custom-info a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.alert-custom-info a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.btn-recovery-dismiss {
    background: #f1f5f9;
    color: #334155;
    border: 0;
    transition: all 0.2s;
}

.btn-recovery-dismiss:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.fs-7 {
    font-size: 0.85rem !important;
}

.tracking-tight {
    letter-spacing: -0.4px;
}

/* Estilos de la versión móvil del logo */
.mobile-brand-icon-container {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 0.45rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mobile-brand-icon {
    width: 20px;
    height: 20px;
}

/* --- ESTILOS DE TABS LEGALES (TÉRMINOS / PRIVACIDAD) --- */
.modal-legal-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
}

.modal-legal-nav-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    outline: none !important;
}

.modal-legal-nav-btn:hover {
    color: var(--text-dark);
}

.modal-legal-nav-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.legal-content-box {
    max-height: 320px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: left;
}

.legal-content-box::-webkit-scrollbar {
    width: 6px;
}

.legal-content-box::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.15);
    border-radius: 10px;
}

.legal-content-box h6 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 1rem 0 0.4rem 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.legal-content-box h6:first-of-type {
    margin-top: 0;
}

.legal-content-box p {
    margin-bottom: 0.8rem;
}

.legal-content-box ul {
    margin: 0 0 0.8rem 1.2rem;
    padding: 0;
}

.legal-content-box li {
    margin-bottom: 0.35rem;
}

/* =====================================================
   DISEÑO RESPONSIVO — SISTEMA UNIFICADO
   Principio: el contenido NUNCA se recorta ni se
   superpone. El scroll vertical siempre está activo.
   ===================================================== */

/* ---------- TABLET Y MÓVIL (< 992px) ---------- */
@media (max-width: 991.98px) {
    body {
        /* En móvil/tablet se restaura el scroll natural */
        height: auto;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: clamp(1rem, 3vw, 1.5rem);
        align-items: flex-start;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
        max-height: none;       /* sin límite de altura en móvil */
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        margin: 0 auto;
        align-self: flex-start;
    }

    .login-brand {
        display: none !important;
    }

    .login-form-panel {
        padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1.25rem, 5vw, 2rem);
        border-radius: var(--radius);
        background: transparent;
    }

    .mobile-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1.2rem;
        border-bottom: 1.5px dashed #e2e8f0;
    }
}

/* ---------- MÓVIL PEQUEÑO (< 480px) ---------- */
@media (max-width: 479.98px) {
    .login-form-panel {
        padding: 1.5rem 1.25rem;
    }

    .form-header h3 {
        font-size: 1.45rem;
    }

    .form-group {
        margin-bottom: 1.1rem;
    }

    .brand-logo-circle {
        width: 68px;
        height: 68px;
    }

    .brand-logo-circle img {
        width: 36px;
        height: 36px;
    }

    .login-logo-centered {
        margin-bottom: 1.25rem;
    }

    .form-header {
        margin-bottom: 1.5rem;
    }
}

/* ---------- ESCRITORIO CON POCA ALTURA (laptop hasta 820px de alto) ---------- */
@media (min-width: 992px) and (max-height: 820px) {
    body {
        /* body sigue fijo 100dvh+overflow:hidden — solo reducimos padding */
        padding: clamp(0.5rem, 1.5vh, 0.875rem) 1.5rem;
    }

    .login-brand,
    .login-form-panel {
        padding: clamp(1rem, 2vh, 1.75rem) clamp(1.25rem, 2.5vw, 2rem);
    }

    .login-form-body-area {
        margin: clamp(0.25rem, 1vh, 0.5rem) 0;
    }

    .login-logo-centered {
        margin-bottom: clamp(0.4rem, 1.2vh, 1rem);
    }

    .brand-logo-circle {
        width: 60px;
        height: 60px;
    }

    .brand-logo-circle img {
        width: 30px;
        height: 30px;
    }

    .form-header {
        margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem);
    }

    .form-header h3 {
        font-size: clamp(1.25rem, 2vh, 1.6rem);
    }

    .form-header p {
        font-size: clamp(0.78rem, 1.4vh, 0.875rem);
    }

    .hero-body h1 {
        font-size: clamp(1.25rem, 2.2vh, 1.8rem);
        line-height: 1.2;
    }

    .hero-body p {
        font-size: 0.85rem;
        margin-bottom: clamp(0.75rem, 1.8vh, 1.5rem);
    }

    .hero-dashboard-mockup {
        transform: scale(0.85);
        transform-origin: top left;
    }

    .form-group {
        margin-bottom: clamp(0.5rem, 1.2vh, 1rem);
    }

    .input-wrapper input,
    .btn-submit {
        height: 42px;
    }

    .input-wrapper .input-icon,
    .input-wrapper .btn-toggle-pass {
        width: 42px;
        height: 42px;
    }

    .form-options {
        margin-bottom: clamp(0.6rem, 1.5vh, 1.25rem);
    }

    .form-footer-terms {
        margin-top: clamp(0.5rem, 1.5vh, 1.25rem);
    }
}