/* CONTENEDOR PRINCIPAL */
.section-login {
    width: 100%;
    min-height: 100vh;
    background-color: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD PRINCIPAL */
.form-container {
    width: 100%;
    max-width: 1100px;
    max-height: 650px; 
    background-color: #ffffff;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0px 20px 40px rgba(0,0,0,0.08);
}

/* IMAGEN IZQUIERDA */
.contenedor-imagen-login {
    width: 50%;
    background-color: #6a00f4;
}

.imagen_login {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FORMULARIO */
.form-wrapper {
    width: 50%;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-wrapper.login {
    position: relative; /* 🔥 CLAVE */
}
.form-wrapper.login.overlay-activo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 5;
}
.form-wrapper.login.overlay-activo {
    pointer-events: none;
}

.form-wrapper.login.overlay-activo .formAviso {
    pointer-events: auto;
}

.form-wrapper.active {
    opacity: 1;
    z-index: 1;
    transform: rotateY(0deg);
    flex-direction: column-reverse;
    gap: 40px;
}

.titulo-form {
    font-size: 28px;
    color: #000;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
}

/************************ ****************************************  ********************************************* */
.emoji-form-titulo {
    font-size: 35px;
    display: inline-block;
}
/* LOGIN */
.emoji-form-titulo.login {
    animation: emojiSaludo 2.5s ease-in-out infinite;
}

@keyframes emojiSaludo {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(5deg);
    }
    75% {
        transform: translateY(-2px) rotate(-3deg);
    }
}
/* FORGOT */
.emoji-form-titulo.forgot {
    animation: emojiNervioso 1.8s ease-in-out infinite;
}

@keyframes emojiNervioso {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-1px);
    }
    80% {
        transform: translateX(1px);
    }
}
/* REGISTER */
.emoji-form-titulo.register {
    animation: emojiCoqueto 2s ease-in-out infinite;
}

@keyframes emojiCoqueto {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    30% {
        transform: scale(1.15) translateY(-6px);
    }
    60% {
        transform: scale(0.95) translateY(2px);
    }
}
.emoji-form-titulo:hover {
    animation: emojiHover 0.6s ease;
}

@keyframes emojiHover {
    0% { transform: scale(1); }
    30% { transform: scale(1.25) rotate(8deg); }
    60% { transform: scale(0.9) rotate(-8deg); }
    100% { transform: scale(1) rotate(0); }
}

.texto-form{
    margin-bottom: 30px;
    font-size: 14px;
    text-align: center;
}

.hidden {
    display: none;
}

/********************************************************************* */
.formAviso {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: calc(100% - 40px);
    max-width: 360px;

    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    z-index: 10;
}

/* TÍTULO */
.titulo-aviso {
    font-size: 20px;
    color: #111827;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* TEXTO */
.texto-aviso {
    font-size: 14px;
    color: #374151;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* BOTÓN X */
.cerrar-aviso {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    /*color: #6b7280;*/
    color: red;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

/* HOVER EFECTO */
.cerrar-aviso:hover {
    transform: scale(1.2);
}

/* OPCIONAL: EFECTO CLICK */
.cerrar-aviso:active {
    transform: scale(0.95);
}

#seccionReactivacion,
#seccionSolicitarAcceso {
    display: none;
}

.form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* LABELS */
.flex-column label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

/* INPUT CONTENEDOR */
.inputForm {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.inputForm svg {
    color: #9ca3af;
    margin-right: 10px;
}

/* INPUT */
.input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: #111827;
}

/* FOCUS */
.inputForm:focus-within {
    border: 1px solid #7c3aed;
    background-color: #ffffff;
}

/* PASSWORD ICON */
.password-toggle {
    cursor: pointer;
    color: #9ca3af;
    margin-left: 8px;
}

/* CHECKBOX ROW */
.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.flex-row label {
    font-size: 13px;
    color: #6b7280;
}

.flex-row input[type="checkbox"] {
    margin-right: 5px;
}

/* LINKS */
.span {
    color: #7c3aed;
    font-size: 13px;
    cursor: pointer;
}

.span:hover {
    text-decoration: underline;
}

/* BOTON */
.button-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background-color: #7c3aed;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.button-submit:hover {
    background-color: #6d28d9;
}

/* TEXTO INFERIOR */
.no-cuenta {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 20px;
}

/* ERRORES */
.errorMessage {
    display: none;
    font-size: 13px;
    background-color: #ef4444;
    color: #f3f4f6;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}
/* ===============================
ALERTAS
=================================*/

/* OCULTO */
.alertaHide {
    display: none;
}

.input-group {
    position: relative;
}

/* CONTENEDOR DE MENSAJES */
.mensajes {
    position: absolute;
    bottom: 110%; /* 👈 AHORA ARRIBA del input */
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
/* EMOJI ALERTA */
.emoji-alerta {
    font-size: 20px;
}
/* MENSAJES */
.mensajes p {
    display: inline-block;
    width: auto;
    max-width: 250px;

    background: #e53935;
    color: #fff;

    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;

    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

/* ESTADO VISIBLE */
.mensajes p.show {
    opacity: 1;
    transform: translateY(0);
}

/* EFECTO HOVER */
.mensajes p:hover {
    transform: scale(1.05);
    background: #c62828;
}
.mensajes p::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 15px;

    width: 10px;
    height: 10px;
    background: #e53935;

    transform: rotate(45deg);
}

.mensajes {
    pointer-events: none;
}

/* ===================== */
/* 📱 RESPONSIVE */
/* ===================== */

/* TABLET */
@media (max-width: 900px) {
    .form-container {
        flex-direction: column;
        max-height: none;
    }

    .contenedor-imagen-login {
        width: 100%;
        height: 400px;
    }

    .form-wrapper {
        width: 100%;
        padding: 40px 30px;
    }

    .input {
        font-size: 13px;
    }
}

/* MOBILE */
@media (max-width: 500px) {
    .form-wrapper {
        padding: 30px 20px;
    }

    .inputForm {
        padding: 10px;
    }

    .button-submit {
        padding: 12px;
        font-size: 13px;
    }
}