/* Estilos generales */
        :root {
            --primary-color: #3498db;
            --secondary-color: #2980b9;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --transition-speed: 0.3s;
        }

        * {
            box-sizing: border-box;
        }

        body {
            background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 1rem;
            overflow-x: hidden;
        }

        /* Elementos de fondo animados */
        .background-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            overflow: hidden;
            pointer-events: none;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 15s infinite linear;
            pointer-events: none;
        }

        .shape:nth-child(1) {
            width: 80px;
            height: 80px;
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            width: 120px;
            height: 120px;
            top: 60%;
            left: 80%;
            animation-delay: 3s;
        }

        .shape:nth-child(3) {
            width: 60px;
            height: 60px;
            top: 80%;
            left: 20%;
            animation-delay: 6s;
        }

        .shape:nth-child(4) {
            width: 100px;
            height: 100px;
            top: 30%;
            left: 70%;
            animation-delay: 9s;
        }

        /* Pantalla de logo inicial */

        #logo-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: opacity 1s ease-out, transform 1s ease-out;
            padding: 1rem;
        }

        .logo-container {
            text-align: center;
            animation: pulse 2s infinite;
        }

        .logo {
            width: 150px;
            height: 150px;
            margin-bottom: 20px;
            filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
        }

        .school-name {
            font-size: 2rem;
            font-weight: 700;
            color: white;
            margin-bottom: 10px;
        }

        .platform-name {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
        }

        /* Contenedor de Login */

        .login-container {
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            max-width: 500px;
            width: 100%;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            animation: fadeInUp 1s ease-out;
        }

        .logo-section {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            padding: 35px 25px;
            text-align: center;
            color: white;
        }

        .login-logo {
            max-width: 90px;
            margin-bottom: 18px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

        .login-form {
            padding: 35px;
        }

        /* Campos de Formulario */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--dark-color);
        }

        /* Alineación de campos */
        .input-group {
            display: flex;
            align-items: stretch;
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .input-group-text {
            background-color: var(--light-color);
            border: 1px solid #ddd;
            border-right: none;
            padding: 12px 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 50px;
            transition: all var(--transition-speed);
        }

        .input-group .form-control {
            flex: 1;
            border: 1px solid #ddd;
            border-left: none;
            border-radius: 0 8px 8px 0;
            padding: 12px 15px;
            margin-bottom: 0;
            font-size: 1rem;
            transition: all var(--transition-speed);
        }

        .input-group .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
            outline: none;
        }

        .input-group:focus-within .input-group-text {
            border-color: var(--primary-color);
            background-color: rgba(52, 152, 219, 0.1);
        }

        /* Estilo del toggle (ojo) de contraseña */
        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 20;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 5px;
            border-radius: 3px;
            opacity: 0.3;
            transition: all var(--transition-speed);
            display: block;
        }

        .password-toggle:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.9);
        }

        .password-toggle i {
            color: #22C3E6;
            font-size: 1rem;
        }

        /* Botón de login */
        .login-btn {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            border: none;
            color: white;
            padding: 14px;
            border-radius: 8px;
            font-weight: 600;
            width: 100%;
            transition: all var(--transition-speed);
            cursor: pointer;
            font-size: 1.1rem;
            margin-top: 0.5rem;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .form-footer {
            text-align: center;
            margin-top: 22px;
            font-size: 1rem;
            color: #666;
        }

        .form-footer a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color var(--transition-speed);
        }

        .form-footer a:hover {
            color: var(--secondary-color);
        }

        /* Animaciones */
        @keyframes float {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            33% {
                transform: translateY(-20px) rotate(120deg);
            }

            66% {
                transform: translateY(10px) rotate(240deg);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        .fade-out {
            opacity: 0 !important;
            transform: scale(1.1) !important;
        }

        .fade-in {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        .hidden {
            display: none !important;
        }

        /* Medias */
        @media (max-width: 576px) {
            .login-container {
                max-width: 95%;
            }

            .logo {
                width: 120px;
                height: 120px;
            }

            .school-name {
                font-size: 1.7rem;
            }

            .platform-name {
                font-size: 1rem;
            }

            .login-form {
                padding: 25px;
            }

            .logo-section {
                padding: 25px 20px;
            }

            .login-logo {
                max-width: 75px;
            }

            .input-group-text {
                padding: 10px 12px;
                min-width: 45px;
            }

            .input-group .form-control {
                padding: 10px 12px;
            }

            .login-btn {
                padding: 12px;
                font-size: 1rem;
            }

            .shape:nth-child(1) {
                width: 60px;
                height: 60px;
            }

            .shape:nth-child(2) {
                width: 90px;
                height: 90px;
            }

            .shape:nth-child(3) {
                width: 40px;
                height: 40px;
            }

            .shape:nth-child(4) {
                width: 70px;
                height: 70px;
            }
        }

        /* Mejoras de accesibilidad */
        @media (prefers-reduced-motion: reduce) {
            .shape {
                animation: none;
            }

            .logo-container {
                animation: none;
            }

            .login-btn:hover {
                transform: none;
            }
        }

        /* Estados de enfoque para accesibilidad */
        .login-btn:focus,
        .form-control:focus {
            outline: 2px solid var(--accent-color);
            outline-offset: 2px;
        }