 @import url('https://fonts.googleapis.com/css2?family=Chewy&family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: 'Poppins', sans-serif;
        }

        main {
            display: flex;
            height: 100vh;
        }

        .card {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #242020;
            position: relative;
        }

        .izquierdo {
            background-color: #ff0000;
            position: relative;
        }

        .derecho {
            background-color: #ffbb00;
            position: relative;
            overflow: hidden;
        }

        /* Iconos decorativos de fondo */
        .decorative-icons {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        .decorative-icon {
            position: absolute;
            color: rgba(255, 255, 255, 0.1);
            font-size: 2rem;
            animation: float 6s ease-in-out infinite;
        }

        .decorative-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
        .decorative-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
        .decorative-icon:nth-child(3) { top: 35%; left: 5%; animation-delay: 2s; }
        .decorative-icon:nth-child(4) { top: 50%; right: 10%; animation-delay: 3s; }
        .decorative-icon:nth-child(5) { top: 65%; left: 15%; animation-delay: 4s; }
        .decorative-icon:nth-child(6) { top: 80%; right: 20%; animation-delay: 5s; }
        .decorative-icon:nth-child(7) { top: 15%; left: 30%; animation-delay: 1.5s; }
        .decorative-icon:nth-child(8) { top: 45%; right: 30%; animation-delay: 2.5s; }
        .decorative-icon:nth-child(9) { top: 75%; left: 25%; animation-delay: 3.5s; }
        .decorative-icon:nth-child(10) { top: 30%; right: 5%; animation-delay: 4.5s; }
        .decorative-icon:nth-child(11) { top: 55%; left: 35%; animation-delay: 0.5s; }
        .decorative-icon:nth-child(12) { top: 25%; right: 25%; animation-delay: 1.8s; }
        .decorative-icon:nth-child(13) { top: 70%; right: 35%; animation-delay: 2.8s; }
        .decorative-icon:nth-child(14) { top: 40%; left: 8%; animation-delay: 3.8s; }
        .decorative-icon:nth-child(15) { top: 85%; left: 40%; animation-delay: 4.8s; }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

        /* Estilos Card de la izquierda */
        .titulo {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            font-size: 1.8rem;
            color: #fff;
            font-family: 'Chewy', cursive;
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: fadeInDown 1s ease-out;
        }

        .logo {
            position: absolute;
            top: 120px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            align-items: center;
            animation: bounceIn 1.5s ease-out;
        }

        .logo img {
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
            transition: transform 0.3s ease;
        }

        .logo img:hover {
            transform: scale(1.05);
        }

        .imgfooter {
            position: absolute;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 35px;
        }

        .img {
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease;
        }

        .img:hover {
            transform: translateY(-5px);
        }

        .img img {
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
        }

        .finalfooter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0;
            font-size: 1.2rem;
            color: #fff;
            font-family: 'Chewy', cursive;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
            animation: fadeInUp 1s ease-out 0.5s both;
        }

        /* Estilos para el login */
        .login-container {
            background: white;
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            width: 90%;
            max-width: 400px;
            position: relative;
            z-index: 2;
            animation: slideInRight 1s ease-out;
        }

        .login-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .login-subtitle {
            color: #666;
            text-align: center;
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

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

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #333;
            font-size: 0.95rem;
        }

        .form-input {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #f9f9f9;
            box-sizing: border-box;
        }

        .form-input:focus {
            outline: none;
            border-color: #ff0000;
            background: white;
            box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .form-input.error {
            border-color: #dc3545;
            background: #fff5f5;
        }

        .login-button {
            width: 100%;
            padding: 1rem;
            background: #ff0000;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .login-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
            background: #e60000;
        }

        .login-button:active {
            transform: translateY(0);
        }

        .login-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .forgot-password {
            text-align: center;
            margin-top: 1rem;
        }

        .forgot-password a {
            color: #ff0000;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .forgot-password a:hover {
            text-decoration: underline;
            color: #e60000;
        }

        .register-link {
            text-align: center;
            margin-top: 1rem;
            font-size: 0.9rem;
        }

        .next-screen-button {
            width: 250px;
            padding: 1rem;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: absolute;
            top: 40px;
            right: 60px;
            z-index: 10;
        }

        .next-screen-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
            background: #218838;
        }

        .next-screen-button:active {
            transform: translateY(0);
        }

        .next-screen-button .button-text {
            display: inline;
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 2rem;
            border: none;
            border-radius: 15px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            animation: slideInDown 0.3s ease;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .modal-icon {
            font-size: 3rem;
            color: #dc3545;
            margin-right: 1rem;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #333;
            margin: 0;
        }

        .modal-message {
            color: #666;
            margin-bottom: 2rem;
            font-size: 1rem;
            line-height: 1.5;
        }

        .modal-button {
            padding: 0.75rem 2rem;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-button:hover {
            background: #c82333;
            transform: translateY(-2px);
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s linear infinite;
            margin-right: 0.5rem;
        }

        /* Animaciones */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: translateX(-50%) scale(0.3);
            }
            50% {
                opacity: 1;
                transform: translateX(-50%) scale(1.1);
            }
            100% {
                opacity: 1;
                transform: translateX(-50%) scale(1);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive - Solo mostrar login en móvil */
        @media (max-width: 768px) {
            main {
                flex-direction: row;
            }
            
            .izquierdo {
                display: none;
            }
            
            .derecho {
                flex: 1;
                width: 100%;
            }
            
            .login-container {
                padding: 2rem;
                margin: 1rem;
                width: calc(100% - 2rem);
                max-width: none;
            }
            
            .login-title {
                font-size: 1.8rem;
            }
            
            .login-subtitle {
                font-size: 1rem;
            }

            .next-screen-button {
                top: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                padding: 0;
                font-size: 1.2rem;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .next-screen-button .button-text {
                display: none;
            }

            .modal-content {
                margin: 25% auto;
                padding: 1.5rem;
                width: 95%;
            }
        }

        /* Para pantallas muy pequeñas */
        @media (max-width: 480px) {
            .login-container {
                padding: 1.5rem;
                margin: 0.5rem;
                width: calc(100% - 1rem);
                border-radius: 15px;
            }
            
            .login-title {
                font-size: 1.6rem;
            }
            
            .form-input {
                padding: 0.8rem;
            }
            
            .login-button {
                padding: 0.8rem;
                font-size: 1rem;
            }
        }