* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #1a237e;
            --primary-light: #3949ab;
            --accent: #30aba2;
            --accent-orange: #e8602f;
            --gold: #ffc107;
            --text-dark: #0c183f;
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
            --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
            --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
        }

        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            position: relative;
            overflow: hidden;
        }

        /* Fondo con imagen */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../img/fondo.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            z-index: -2;
        }

        /* Overlay sutil */
        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255, 255, 255, 0.61) 100%);
            z-index: -1;
        }

        /* Contenedor principal */
        .login-wrapper {
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.6s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Tarjeta de login */
        .login-box {
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(20px) saturate(180%);
            border-radius: 15px;
            max-width: 900px;
            width: 100%;
            box-shadow: var(--shadow-lg);
            border: 1px solid rgba(255, 255, 255, 0.5);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            min-height: 500px;
        }

        /* Efecto de brillo sutil en hover */
        .login-box::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(48, 171, 162, 0.08) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.6s ease;
            pointer-events: none;
        }

        .login-box:hover::before {
            opacity: 1;
        }

        .login-box:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.18);
        }

        /* Sección izquierda - Branding */
        .login-brand-section {
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
            padding: 48px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .login-brand-section::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            top: -100px;
            right: -100px;
            animation: float 6s ease-in-out infinite;
        }

        .login-brand-section::after {
            content: '';
            position: absolute;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            bottom: -50px;
            left: -50px;
            animation: float 8s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-20px) scale(1.05); }
        }

        .logo-container {
            width: 120px;
            height: 120px;
            margin-bottom: 30px;
            position: relative;
            z-index: 1;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            padding: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }

        .logo-container img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.4s ease;
        }

        .login-box:hover .logo-container img {
            transform: scale(1.1) rotate(5deg);
        }

        .brand-text {
            text-align: center;
            color: white;
            position: relative;
            z-index: 1;
        }

        .brand-text h1 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 12px;
            letter-spacing: -1px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .brand-text p {
            font-size: 1rem;
            font-weight: 300;
            opacity: 0.95;
            line-height: 1.6;
        }

        .brand-features {
            margin-top: 40px;
            text-align: left;
            width: 100%;
            max-width: 280px;
            position: relative;
            z-index: 1;
        }

        .feature-item {
            display: flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.753);
            margin-bottom: 5px;
            font-size: 0.9rem;
            opacity: 0.95;
        }

        .feature-item i {
            font-size: 1rem;
            margin-right: 12px;
            background: rgba(255, 255, 255, 0);
            padding: 4px;
            border-radius: 8px;
        }

        /* Sección derecha - Formulario */
        .login-form-section {
            padding: 48px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-header {
            margin-bottom: 32px;
        }

        .form-header h2 {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .form-header p {
            font-size: 0.95rem;
            color: #64748b;
        }

        /* Campos de formulario */
        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .form-button{
            display: flex;
            align-items: center;
            justify-content: space-between !important;
            margin-top: 16px;
            gap: 20px;
        }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1.1rem;
            transition: color 0.3s ease;
            z-index: 1;
        }

        .form-control {
            width: 100%;
            padding: 14px 16px 14px 48px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.95rem;
            background: white;
            color: var(--text-dark);
            transition: all 0.3s ease;
            font-weight: 400;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(48, 171, 162, 0.1);
            background: white;
        }

        .form-control:focus + .input-icon {
            color: var(--accent);
        }

        .form-control::placeholder {
            color: #cbd5e1;
        }

        /* Botón de login */
        .btn-login {
            
            padding: 14px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(48, 171, 162, 0.3);
            position: relative;
            overflow: hidden;
            margin-top: 8px;
        }

        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-login:hover::before {
            left: 100%;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(48, 171, 162, 0.4);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .btn-login:disabled:hover {
            transform: none;
        }

        .btn-cancel{
            padding: 14px;
            background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(48, 171, 162, 0.3);
            position: relative;
            overflow: hidden;
            margin-top: 8px;
        }

        .btn-cancel::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-cancel:hover::before {
            left: 100%;
        }

        .btn-cancel:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(48, 171, 162, 0.4);
        }

        /* Alertas */
        .alert {
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 0.875rem;
            margin-bottom: 20px;
            border: none;
            animation: slideDown 0.3s ease-out;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .alert-danger {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #991b1b;
        }

        .alert i {
            margin-right: 8px;
        }

        .btn-close {
            padding: 0;
            background: none;
            border: none;
            font-size: 1.2rem;
            opacity: 0.6;
            transition: opacity 0.2s;
            cursor: pointer;
            color: inherit;
        }

        .btn-close:hover {
            opacity: 1;
        }

        /* Footer */
        .login-footer {
            text-align: center;
            margin-top: 28px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
        }

        .login-footer small {
            color: #94a3b8;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .login-footer i {
            color: var(--accent);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .login-box {
                grid-template-columns: 1fr;
                max-width: 450px;
            }

            .login-brand-section {
                padding: 32px 28px;
                min-height: 300px;
            }

            .logo-container {
                width: 90px;
                height: 90px;
            }

            .brand-text h1 {
                font-size: 1.6rem;
            }

            .brand-features {
                margin-top: 24px;
            }

            .login-form-section {
                padding: 36px 28px;
            }

            .form-header h2 {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .login-brand-section {
                padding: 28px 24px;
                min-height: 250px;
            }

            .logo-container {
                width: 80px;
                height: 80px;
                padding: 15px;
            }

            .brand-text h1 {
                font-size: 1.4rem;
            }

            .brand-features {
                display: none;
            }

            .login-form-section {
                padding: 32px 24px;
            }
        }