

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Fix global para MudDatePicker y otros componentes de fecha */
.mud-picker-calendar-header-day,
.mud-picker-calendar-header-switch,
.mud-picker-calendar-header-switch button,
.mud-picker-calendar-transition button,
.mud-picker-month-container button,
.mud-picker-year-container button,
.mud-picker-calendar-day:not(.mud-selected),
.mud-picker-month,
.mud-picker-year,
.mud-picker-calendar-container .mud-typography,
.mud-picker-calendar-header .mud-typography,
.mud-picker-calendar-header-day .mud-typography {
    color: rgba(0, 0, 0, 0.87) !important;
}

/* Estilos para los botones de navegaci�n del calendario */
.mud-picker-calendar-header button {
    color: rgba(0, 0, 0, 0.87) !important;
}

/* Hover effects */
.mud-picker-calendar-day:hover:not(.mud-selected) {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* D�a seleccionado */
.mud-picker-calendar-day.mud-selected {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Mes/A�o seleccionado */
.mud-picker-month.mud-selected,
.mud-picker-year.mud-selected {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Fix para los iconos en los date pickers */
.mud-input-adornment button {
    color: rgba(0, 0, 0, 0.54) !important;
}

/* Asegurar que todos los textos sean visibles */
.mud-picker-calendar-container * {
    color: inherit;
}

/* Estilos globales para asegurar que el NavMenu siempre sea visible */
/* Agregar estos estilos en app.css */

/* Aumentar el z-index del sidebar existente */
.sidebar {
    z-index: 1000 !important; /* Mayor que cualquier contenido pero respetando la estructura existente */
}

/* Para cuando uses MudDrawer en lugar del sidebar tradicional */
.mud-drawer-left,
.mud-drawer-open-responsive-md-left,
.mud-drawer,
.mud-drawer-container {
    z-index: 1100 !important;
}

/* El overlay del drawer */
.mud-overlay,
.mud-drawer-overlay {
    z-index: 1050 !important;
}

/* AppBar de MudBlazor si lo usas */
.mud-appbar {
    z-index: 1000 !important;
}

/* Contenido principal - asegurar que no interfiera */
main {
    position: relative !important;
    z-index: 1 !important;
}

/* Evitar que cualquier contenido de p�gina sobrepase el NavMenu */
.page > main > article {
    position: relative !important;
    z-index: 1 !important;
}

/* Limitar z-index de elementos dentro del contenido */
.content .mud-container,
.content .mud-card,
.content .mud-paper,
.content .mud-data-grid,
.content .mud-expansion-panel {
    position: relative !important;
    z-index: auto !important;
}

/* Espec�ficamente para el componente de reporte */
.reporte-compras-container {
    position: relative !important;
    z-index: 1 !important;
}

/* DataGrid debe mantenerse contenido */
.mud-table-container,
.mud-data-grid-container {
    position: relative !important;
    z-index: auto !important;
    overflow: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ASISCOMEX C.I. - Login Espectacular
   Una experiencia visual única con IA integrada
   Powered by ASISCLOUD S.A.S.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* UNIVERSO DE FONDO - El lienzo mágico */
.login-universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg,
        #0f0c29 0%,
        #302b63 40%,
        #24243e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-universe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* PARTÍCULAS FLOTANTES */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 15s infinite ease-in-out;
}

.particle-0 { left: 5%; animation-delay: 0s; }
.particle-1 { left: 10%; animation-delay: 0.3s; }
.particle-2 { left: 15%; animation-delay: 0.6s; }
.particle-3 { left: 20%; animation-delay: 0.9s; }
.particle-4 { left: 25%; animation-delay: 1.2s; }
.particle-5 { left: 30%; animation-delay: 1.5s; }
.particle-6 { left: 35%; animation-delay: 1.8s; }
.particle-7 { left: 40%; animation-delay: 2.1s; }
.particle-8 { left: 45%; animation-delay: 2.4s; }
.particle-9 { left: 50%; animation-delay: 2.7s; }
.particle-10 { left: 55%; animation-delay: 3s; }
.particle-11 { left: 60%; animation-delay: 3.3s; }
.particle-12 { left: 65%; animation-delay: 3.6s; }
.particle-13 { left: 70%; animation-delay: 3.9s; }
.particle-14 { left: 75%; animation-delay: 4.2s; }
.particle-15 { left: 80%; animation-delay: 4.5s; }
.particle-16 { left: 85%; animation-delay: 4.8s; }
.particle-17 { left: 90%; animation-delay: 5.1s; }
.particle-18 { left: 95%; animation-delay: 5.4s; }
.particle-19 { left: 8%; animation-delay: 5.7s; }
.particle-20 { left: 18%; animation-delay: 6s; }
.particle-21 { left: 28%; animation-delay: 6.3s; }
.particle-22 { left: 38%; animation-delay: 6.6s; }
.particle-23 { left: 48%; animation-delay: 6.9s; }
.particle-24 { left: 58%; animation-delay: 7.2s; }
.particle-25 { left: 68%; animation-delay: 7.5s; }
.particle-26 { left: 78%; animation-delay: 7.8s; }
.particle-27 { left: 88%; animation-delay: 8.1s; }
.particle-28 { left: 3%; animation-delay: 8.4s; }
.particle-29 { left: 13%; animation-delay: 8.7s; }
.particle-30 { left: 23%; animation-delay: 9s; }
.particle-31 { left: 33%; animation-delay: 9.3s; }
.particle-32 { left: 43%; animation-delay: 9.6s; }
.particle-33 { left: 53%; animation-delay: 9.9s; }
.particle-34 { left: 63%; animation-delay: 10.2s; }
.particle-35 { left: 73%; animation-delay: 10.5s; }
.particle-36 { left: 83%; animation-delay: 10.8s; }
.particle-37 { left: 93%; animation-delay: 11.1s; }
.particle-38 { left: 7%; animation-delay: 11.4s; }
.particle-39 { left: 17%; animation-delay: 11.7s; }
.particle-40 { left: 27%; animation-delay: 12s; }
.particle-41 { left: 37%; animation-delay: 12.3s; }
.particle-42 { left: 47%; animation-delay: 12.6s; }
.particle-43 { left: 57%; animation-delay: 12.9s; }
.particle-44 { left: 67%; animation-delay: 13.2s; }
.particle-45 { left: 77%; animation-delay: 13.5s; }
.particle-46 { left: 87%; animation-delay: 13.8s; }
.particle-47 { left: 97%; animation-delay: 14.1s; }
.particle-48 { left: 12%; animation-delay: 14.4s; }
.particle-49 { left: 82%; animation-delay: 14.7s; }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ONDAS ANIMADAS */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    pointer-events: none;
}

.waves {
    width: 100%;
    height: 100%;
}

.wave {
    animation: wave-move 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave1 { animation-delay: 0s; opacity: 0.7; }
.wave2 { animation-delay: -5s; opacity: 0.5; }
.wave3 { animation-delay: -10s; opacity: 0.3; }

@keyframes wave-move {
    0% { transform: translateX(0) translateZ(0) scaleY(1); }
    50% { transform: translateX(-25%) translateZ(0) scaleY(0.55); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

/* ORBES LUMINOSOS */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(0, -50px) scale(1); }
    75% { transform: translate(-30px, -30px) scale(0.9); }
}

/* CONTENEDOR PRINCIPAL DEL LOGIN */
.login-main-container {
    z-index: 10;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    animation: card-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TARJETA DE CRISTAL (GLASSMORPHISM) */
.login-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 35px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 80px rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.login-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.login-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(99, 102, 241, 0.1),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
}

.login-glass-card.card-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* SECCIÓN DE BRANDING */
.brand-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    position: relative;
}

.logo-svg {
    width: 100%;
    height: 100%;
    animation: logo-rotate 20s linear infinite;
}

.logo-circle {
    animation: logo-pulse 2s ease-in-out infinite;
}

.logo-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: check-draw 2s ease-out forwards 0.5s;
}

@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

.logo-dot {
    animation: dot-pulse 2s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.5s; }
.dot-3 { animation-delay: 1s; }
.dot-4 { animation-delay: 1.5s; }

@keyframes dot-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes logo-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logo-pulse {
    0%, 100% { stroke-width: 3; }
    50% { stroke-width: 4; }
}

/* Indicador de IA */
.ai-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: ai-pulse-ring 2s ease-out infinite;
}

@keyframes ai-pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.ai-text {
    position: relative;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Título del brand */
.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.title-asis {
    color: #fff;
}

.title-comex {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-ci {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    margin-left: 8px;
}

/* Tagline */
.brand-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tagline-icon {
    color: #8b5cf6;
    display: flex;
    animation: sparkle 2s ease-in-out infinite;
}

.tagline-icon .mud-icon-root {
    font-size: 1rem !important;
    color: #8b5cf6 !important;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.highlight-ai {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* MENSAJE DE ERROR */
.error-message-container {
    margin-bottom: 20px;
    animation: error-shake 0.5s ease-in-out;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fca5a5;
    font-size: 0.9rem;
}

.error-message .mud-icon-root {
    color: #ef4444 !important;
    flex-shrink: 0;
    font-size: 1.2rem !important;
}

.error-message span {
    flex: 1;
}

.error-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

.error-close:hover {
    color: white;
}

/* ESTILOS GLOBALES PARA MUDBLAZOR ICONS EN LOGIN */
.login-universe .mud-icon-root {
    font-size: 1.5rem !important;
}

.input-icon .mud-icon-root {
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.input-group:focus-within .input-icon .mud-icon-root {
    color: #8b5cf6 !important;
}

.password-toggle-btn .mud-icon-root {
    font-size: 1.3rem !important;
}

.login-btn .mud-icon-root {
    font-size: 1.2rem !important;
}

.forgot-link .mud-icon-root {
    font-size: 1rem !important;
}

.cancel-btn .mud-icon-root {
    font-size: 1.2rem !important;
}

/* FORMULARIO DE LOGIN */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    transition: color 0.3s;
}

.input-field {
    width: 100%;
    padding: 16px 50px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 2px;
    transition: all 0.4s ease;
    opacity: 0;
}

.input-field:focus ~ .input-focus-border {
    width: 100%;
    left: 0;
    opacity: 1;
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.3s;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: white;
}

/* BOTÓN DE LOGIN */
.login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.login-btn:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn.btn-loading {
    background: rgba(255, 255, 255, 0.1);
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* LINK DE RECUPERACIÓN DE CONTRASEÑA */
.forgot-password {
    text-align: center;
    margin-top: 10px;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* FOOTER DEL CARD */
.login-universe .card-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.company-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.badge-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-company {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SECCIÓN DE SELECCIÓN DE EMPRESA */
.empresa-universe {
    z-index: 10;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    animation: card-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.empresa-header-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    animation: avatar-pulse 3s ease-in-out infinite;
}

@keyframes avatar-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(99, 102, 241, 0.6); }
}

.user-avatar .mud-icon-root {
    color: white !important;
    font-size: 2.5rem !important;
}

.welcome-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

/* Grid de empresas - Layout vertical */
.empresas-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    max-height: 70vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empresas-grid::-webkit-scrollbar {
    width: 6px;
}

.empresas-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.empresas-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Tarjetas de empresa */
.empresa-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.empresa-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.3) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.empresa-card:hover .empresa-card-glow {
    opacity: 1;
}

.empresa-card-content {
    position: relative;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
    box-sizing: border-box;
}

.empresa-card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.3),
        rgba(139, 92, 246, 0.3),
        rgba(236, 72, 153, 0.3)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.empresa-card:hover .empresa-card-border {
    opacity: 1;
}

.empresa-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.empresa-card.card-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.empresa-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.empresa-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.empresa-icon .mud-icon-root {
    color: white !important;
    font-size: 1.8rem !important;
}

.empresa-icon-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #ec4899) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.empresa-card:hover .empresa-icon-ring {
    opacity: 1;
    animation: ring-rotate 3s linear infinite;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empresa-details {
    flex: 1;
    min-width: 0;
}

.empresa-nombre {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.empresa-nit,
.empresa-ciudad {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 4px;
}

.empresa-nit .mud-icon-root,
.empresa-ciudad .mud-icon-root {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.empresa-arrow {
    flex-shrink: 0;
}

.arrow-circle {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.arrow-circle .mud-icon-root {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.4s;
    font-size: 1.5rem !important;
}

.empresa-card:hover .arrow-circle {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    transform: translateX(5px);
}

.empresa-card:hover .arrow-circle .mud-icon-root {
    color: white !important;
}

/* Botón cancelar */
.cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* OVERLAY DE CARGA ESPECTACULAR */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlay-fade-in 0.3s ease;
}

@keyframes overlay-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-content {
    text-align: center;
}

.loading-spinner-container {
    margin-bottom: 30px;
}

.loading-spinner {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.ring-1 {
    border-top-color: #6366f1;
    animation: spin 1.5s linear infinite;
}

.ring-2 {
    inset: 10px;
    border-right-color: #8b5cf6;
    animation: spin 2s linear infinite reverse;
}

.ring-3 {
    inset: 20px;
    border-bottom-color: #ec4899;
    animation: spin 2.5s linear infinite;
}

.spinner-core {
    position: absolute;
    inset: 30px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: core-pulse 2s ease-in-out infinite;
}

.spinner-core .mud-icon-root {
    color: white !important;
    font-size: 1.5rem !important;
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 50%;
    animation: dots-bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE DESIGN PARA LOGIN */
@media (max-width: 768px) {
    .login-glass-card {
        padding: 30px 25px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .title-ci {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
    }

    .empresas-grid {
        max-width: 100%;
        padding: 5px;
    }

    .empresa-card-content {
        padding: 20px;
    }

    .empresa-nombre {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .login-main-container,
    .empresa-universe {
        padding: 15px;
    }

    .login-glass-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .input-field {
        padding: 14px 45px;
    }

    .login-btn {
        padding: 14px 20px;
    }
}