/* =================== FUENTES Y RESET =================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, #241c50, #17be9f, #241c50);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    padding: 20px;
}

/* Animación del fondo */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =================== LOGIN CONTAINER =================== */
.login-container {
    display: flex;
    flex-direction: row;
    width: 900px;
    max-width: 100%;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =================== LADO IZQUIERDO =================== */
.login-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

.logo img {
    width: 100%;
    max-width: 300px;
}

/* =================== LADO DERECHO =================== */
.login-right {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-right h1 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

/* =================== INPUTS =================== */
.input-group {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.input-fill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 12px 15px;
    color: #fff;
}

.input-fill input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding-left: 10px;
    font-size: 16px;
}

.input-icon {
    font-size: 20px;
}

/* =================== BOTÓN LOGIN =================== */
.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #4441ff, #2bbcff);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 65, 108, 0.5);
}

.btn-login:active {
    transform: scale(0.95);
}

/* =================== LINK OLVIDO CONTRASEÑA =================== */
.forgot-password {
    display: block;
    margin: 10px 0;
    color: #fff;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* =================== OCULTAR FORMULARIO =================== */
.oculto {
    display: none;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        width: 90%;
    }

    .login-left {
        width: 100%;
        padding: 20px;
    }

    .login-right {
        width: 100%;
        padding: 30px;
    }

    .logo img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 20px;
    }

    .login-right h1 {
        font-size: 22px;
    }

    .btn-login {
        font-size: 16px;
        padding: 10px;
    }

    .forgot-password {
        font-size: 12px;
    }
}
