﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* GLOBAL */
body, html {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f4f6f9;
    overflow: hidden;
}

.container {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100vh;
    animation: fadeIn 1s ease-in-out;
}

/* PANEL IZQUIERDO */
.left-panel {
    flex: 1;
    background: 
        linear-gradient(to top right, rgba(0, 0, 0, 0.5), rgba(0, 51, 153, 0.5)),
        url('https://oparin.edu.mx/wp-content/uploads/2024/07/op01.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
    animation: slideInLeft 1s ease;
}

.left-panel p {
    margin-top: 15px;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.description {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 20px;
}

/* PANEL DERECHO */
.right-panel {
    flex: 1;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    animation: slideInRight 1s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

#oparin {
    font-size: 80px;
    font-weight: 800;
    color: #1361af;
    margin-bottom: 70px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.right-panel h2 {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.subtext {
    font-size: 16px;
    color: #777;
    margin-bottom: 40px;
    font-style: italic;
}

/* FORMULARIO */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

input {
    width: 80%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input:focus {
    border-color: #1361af;
    box-shadow: 0 0 8px rgba(19, 97, 175, 0.3);
    background-color: #fff;
    outline: none;
}

.forgot-password {
    font-size: 13px;
    color: #3a9bfd;
    text-align: right;
    width: 80%;
    display: block;
    margin-top: -10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* BOTÓN */
button {
    width: 80%;
    background: linear-gradient(to top right, #1361af, #338ee9);
    color: #facb84;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(to top right, #725500, #FFFDD0);
    color: #1361af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* CAMPO CONTRASEÑA CON ICONO */
.password-container {
    width: 80%;
    position: relative;
}

#password {
    width: 100%;
    padding-right: 40px;
}

#toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 20px;
    transition: color 0.2s ease;
}

#toggle-password:hover {
    color: #333;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    background: #f8f8f8;
    font-size: 13px;
    color: #666;
    font-style: italic;
    letter-spacing: 0.3px;
    position: relative;
}

.avatar-expression {
  font-size: 60px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  user-select: none;
}

.avatar-look-down {
  content: "👀";
  transform: translateY(5px);
}

.avatar-cover-eyes {
  content: "🙈";
}

.avatar-neutral {
  content: "😐";
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        padding: 20px;
    }

    #oparin {
        font-size: 60px;
        margin-bottom: 40px;
    }

    .right-panel {
        padding: 30px;
    }

    input, button, .forgot-password {
        width: 90%;
    }

    .left-panel .logo h1 {
        font-size: 35px;
        padding: 20px;
    }

    .description {
        font-size: 1.6rem;
    }

    .right-panel h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    #oparin {
        font-size: 50px;
        margin-bottom: 30px;
    }

    .left-panel .logo h1 {
        font-size: 28px;
    }

    .right-panel {
        padding: 20px;
    }

    input, button, .forgot-password {
        width: 90%;
    }

    .right-panel h2 {
        font-size: 24px;
    }

    .description {
        font-size: 1.4rem;
    }
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* MEDIA QUERIES */

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        padding: 15px;
    }

    #oparin {
        font-size: 60px;
        margin-bottom: 50px;
    }

    .right-panel {
        padding: 30px;
    }

    input, button, .forgot-password {
        width: 90%;
    }

    .description {
        font-size: 2rem;
    }

    .left-panel .logo h1 {
        font-size: 30px;
        padding: 20px;
    }

    .right-panel h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    #oparin {
        font-size: 50px;
        margin-bottom: 40px;
    }

    .left-panel {
        padding: 10px;
    }

    .left-panel .logo h1 {
        font-size: 25px;
    }

    .right-panel {
        padding: 20px;
    }

    input, button, .forgot-password {
        width: 90%;
    }

    .right-panel h2 {
        font-size: 24px;
    }

    .description {
        font-size: 1.5rem;
    }
}


/* MEDIA QUERIES */

@media (max-width: 768px) {
    /* Ajustes para el contenedor */
    .container {
        flex-direction: column;
        height: auto;
    }

    /* Panel izquierdo */
    .left-panel {
        padding: 15px;
    }

    /* Título OPARIN */
    #oparin {
        font-size: 60px; /* Reducimos el tamaño del texto */
        margin-bottom: 50px;
    }

    /* Panel derecho */
    .right-panel {
        padding: 30px;
    }

    /* Formulario y botones */
    input, button, .forgot-password {
        width: 90%; /* Hacemos los inputs más anchos */
    }

    /* Texto del título */
    .description {
        font-size: 2rem; /* Ajustamos el tamaño del texto */
    }

    /* Ajuste del logo */
    .left-panel .logo h1 {
        font-size: 30px; /* Ajustamos el tamaño para pantallas pequeñas */
        padding: 20px;
    }

    /* Título h2 */
    .right-panel h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    /* Ajuste de tamaño para dispositivos más pequeños */
    #oparin {
        font-size: 50px; /* Ajustamos aún más el tamaño */
        margin-bottom: 40px;
    }

    /* Panel izquierdo */
    .left-panel {
        padding: 10px;
    }

    .left-panel .logo h1 {
        font-size: 25px; /* Aseguramos que el logo sea pequeño */
    }

    /* Panel derecho */
    .right-panel {
        padding: 20px;
    }

    /* Formulario y botones */
    input, button, .forgot-password {
        width: 90%; /* Hacemos los inputs más grandes */
    }

    /* Título h2 */
    .right-panel h2 {
        font-size: 22px;
    }

    /* Descripción */
    .description {
        font-size: 1.5rem;
    }
}
