/* ============================================
   PÁGINA DE LOGIN - ESTILOS ESPECÍFICOS
   ============================================ */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.login-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================
   ELEMENTOS DECORATIVOS
   ============================================ */
/* Círculo de fondo violeta */
.arch-background {
    width: 100vw;
    height: 150vh;
    background-color: var(--light-violet);
    border-radius: 50%;
    position: absolute;
    left: -50vw;
    top: -37.5vh;
    z-index: 0;
}

/* ============================================
   LAYOUT DE CONTENIDO
   ============================================ */
.login-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: 2rem;
}

/* ============================================
   SECCIÓN DE BIENVENIDA (Lado izquierdo)
   ============================================ */
.login-welcome {
    flex: 1;
    min-width: min(300px, 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.login-welcome img {
    max-width: min(35rem, 100%);
    height: auto;
    margin-bottom: clamp(2rem, 4vh, 4rem);
}

.login-welcome p {
    color: var(--white);
    font-size: clamp(1.25rem, 2.5vw, 2.5rem);
    line-height: 1.4;
}

/* ============================================
   FORMULARIO DE LOGIN
   ============================================ */
.login-form {
    flex: 1;
    min-width: min(300px, 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    position: relative;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animación de entrada del formulario */
.login-form.form-enter {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animación de salida del formulario */
.login-form.form-exit {
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Título del formulario */
.login-form h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--black);
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón de envío */
.login-form button {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--light-violet);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s cubic-bezier(.16, 1, .3, 1);
    margin-top: 1rem;
}

.login-form button:hover {
    transform: scale(1.03);
}

.login-form button:active {
    transform: scale(1);
}

/* Links de recuperación */
.login-form .link {
    color: var(--light-violet);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-form .link:hover {
    color: var(--dark-violet);
    text-decoration: underline;
}

/* Botón de retroceso */
.return-action {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.return-action span {
    color: var(--light-violet);
    font-size: 0.95rem;
    cursor: pointer;
    align-items: center;
    transition: all 0.3s ease;
}

.return-action span:hover {
    color: var(--dark-violet);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.login-footer {
    width: 100%;
    height: 5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    z-index: 1;
}

.login-footer img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
/* ============================================
   VERSIÓN MÓVIL - PÁGINA DE LOGIN
   ============================================ */
@media (max-width: 768px) {
    /* ============================================
       CONTENEDOR PRINCIPAL
       ============================================ */
    .login-container {
        min-height: 100vh;
    }

    /* ============================================
       ELEMENTOS DECORATIVOS
       ============================================ */
    /* Eliminar o reducir el círculo decorativo en móvil */
    .arch-background {
        width: 120vw;
        height: 60vh;
        left: -10vw;
        top: -30vh;
        border-radius: 50%;
    }

    /* ============================================
       LAYOUT DE CONTENIDO
       ============================================ */
    .login-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: center;
        justify-content: flex-start;
    }

    /* ============================================
       SECCIÓN DE BIENVENIDA
       ============================================ */
    .login-welcome {
        min-width: 100%;
        height: 30vh;
        padding: 1rem 2rem;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .login-welcome img {
        max-width: 60%;
        max-height: 8vh;
        width: auto;
        margin-bottom: 0.5rem;
    }

    .login-welcome p {
        font-size: clamp(0.8rem, 3.5vw, 1.1rem);
        line-height: 1.2;
    }

    /* ============================================
       FORMULARIO DE LOGIN - PANEL CENTRADO
       ============================================ */
    .login-form {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        gap: 1rem;
        background-color: transparent;
    }

    /* Título del formulario */
    .login-form h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Campos del formulario - full width */
    .login-form .form-field {
        width: 100%;
    }

    .login-form .form-field input,
    .login-form .form-field select {
        width: 100%;
    }

    /* Botón de envío - full width y mayor altura */
    .login-form button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        margin-top: 0.5rem;
    }

    /* Links de recuperación */
    .login-form .link {
        font-size: 0.9rem;
    }

    /* Botón de retroceso */
    .return-action {
        width: 100%;
    }

    .return-action span {
        font-size: 0.9rem;
    }

    /* ============================================
       FOOTER
       ============================================ */
    .login-footer {
        height: 4rem;
        padding: 0.75rem;
        justify-content: center;
    }

    .login-footer img {
        height: 80%;
    }
}