/* Variables de colores - Academia Faraday */
:root {
    --naranja-faraday: #FF8C42;
    --naranja-claro: #FFB380;
    --naranja-oscuro: #E6733D;
    --naranja-suave: #FFF5F0;
    --blanco: #FFFFFF;
    --negro: #1A1A1A;
    --gris-claro: #F5F5F5;
    --gris: #666666;
    --gris-oscuro: #333333;
    --error: #E74C3C;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--blanco);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Contenedor principal */
.contenedor-login {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-image: url('../imagenes/fondologin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Sección izquierda - Bienvenida */
.seccion-izquierda {
    flex: 0 0 45%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.contenido-bienvenida {
    width: 100%;
    max-width: 500px;
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.titulo-bienvenida {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.linea-1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--naranja-faraday);
    line-height: 1.2;
}

.linea-2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--naranja-faraday);
    line-height: 1.1;
}

.linea-3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--naranja-faraday);
    line-height: 1.1;
}

/* Sección derecha - Formulario */
.seccion-derecha {
    flex: 1;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    z-index: 2;
}

/* Fondos decorativos - ahora usando imagen de fondo */
.fondos-decorativos {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* Contenido del formulario */
.contenido-formulario {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.formulario-login {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Mensaje de error */
.mensaje-error {
    background-color: #FEE;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Grupos de input */
.grupo-input {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.icono-input {
    position: absolute;
    left: 1rem;
    color: var(--naranja-faraday);
    z-index: 2;
    pointer-events: none;
}

.grupo-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--negro);
    background: var(--blanco);
    transition: all 0.3s ease;
}

.grupo-input input:focus {
    outline: none;
    border-color: var(--naranja-faraday);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

.grupo-input input::placeholder {
    color: var(--gris);
}

.toggle-contraseña {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gris);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-contraseña:hover {
    color: var(--naranja-faraday);
}

.toggle-contraseña:focus {
    outline: none;
    color: var(--naranja-faraday);
}

/* Opciones del formulario */
.opciones-formulario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.switch-recordar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.switch-recordar input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #E0E0E0;
    border-radius: 26px;
    transition: background 0.3s ease;
}

.slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blanco);
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-recordar input[type="checkbox"]:checked + .slider {
    background: var(--naranja-faraday);
}

.switch-recordar input[type="checkbox"]:checked + .slider::before {
    transform: translateX(24px);
}

.texto-recordar {
    color: var(--gris-oscuro);
    font-weight: 500;
}

.enlace-olvido {
    color: var(--gris);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.enlace-olvido:hover {
    color: var(--naranja-faraday);
    text-decoration: underline;
}

/* Botón de login */
.boton-login {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--naranja-faraday);
    color: var(--blanco);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.boton-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.boton-login:hover::before {
    width: 300px;
    height: 300px;
}

.boton-login:hover {
    background: var(--naranja-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

.boton-login:active {
    transform: translateY(0);
}

.boton-login:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.3);
}

.boton-login span {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contenedor-login {
        flex-direction: column;
    }

    .seccion-izquierda {
        flex: 0 0 auto;
        padding: 2rem;
        min-height: 40vh;
    }

    .linea-1 {
        font-size: 2rem;
    }

    .linea-2 {
        font-size: 2.8rem;
    }

    .linea-3 {
        font-size: 3.2rem;
    }

    .seccion-derecha {
        flex: 1;
        padding: 2rem;
    }

}

@media (max-width: 768px) {
    .seccion-izquierda {
        min-height: 25vh;
        padding: 1.5rem;
        background: transparent;
    }

    .contenido-bienvenida {
        text-align: center;
    }

    .linea-1,
    .linea-2,
    .linea-3 {
        color: var(--blanco);
    }

    .linea-1 {
        font-size: 1.75rem;
    }

    .linea-2 {
        font-size: 2.25rem;
    }

    .linea-3 {
        font-size: 2.5rem;
    }

    .seccion-derecha {
        padding: 1.5rem;
    }

    .formulario-login {
        padding: 2rem 1.5rem;
    }

}

@media (max-width: 480px) {
    .seccion-izquierda {
        min-height: 20vh;
        padding: 1rem;
        background: transparent;
    }

    .linea-1,
    .linea-2,
    .linea-3 {
        color: var(--blanco);
    }

    .linea-1 {
        font-size: 1.5rem;
    }

    .linea-2 {
        font-size: 1.9rem;
    }

    .linea-3 {
        font-size: 2.1rem;
    }

    .seccion-derecha {
        padding: 1rem;
    }

    .formulario-login {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .opciones-formulario {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }


    .elemento-luz {
        width: 80px;
        height: 80px;
        top: 10%;
        right: 15%;
    }
}

