/* ============================================
   LOGIN - DISEÑO SPLIT SCREEN
   ============================================ */

.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- PANEL IZQUIERDO: MARCA --- */
.login-panel-marca {
    display: none; /* oculto en móvil, se muestra en desktop */
    width: 50%;
    background-color: #000;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.marca-logo {
    width: 100%;
    max-width: 678px;
}

.marca-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.marca-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--dorado);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.marca-subtitulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.85;
}

/* --- PANEL DERECHO: FORMULARIO --- */
.login-panel-form {
    width: 100%;
    background-color: var(--bg-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

/* --- DECORACIÓN DE FONDO --- */
.login-decoracion {
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 550px;
    height: 550px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.login-decoracion img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- CAJA DEL FORMULARIO --- */
.login-form-caja {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* --- MARCA EN MÓVIL --- */
.marca-movil {
    display: block;
    text-align: center;
    margin-bottom: 40px;
}

.marca-movil .marca-titulo {
    color: var(--dorado);
    font-size: 30px;
}

.marca-movil .marca-subtitulo {
    color: var(--texto-oscuro);
    opacity: 0.6;
}

/* --- TEXTOS --- */
.login-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--texto-oscuro);
    margin-bottom: 8px;
}

.login-subtitulo {
    font-size: 13px;
    color: #888;
    margin-bottom: 32px;
}

/* --- GRUPO DE CAMPOS --- */
.login-group {
    margin-bottom: 28px;
}

.login-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* --- INPUTS ESTILO "LÍNEA" (sin caja, solo borde inferior) --- */
.login-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--borde-suave);
    border-radius: 0;
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--texto-oscuro);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-input::placeholder {
    color: #c4c4c4;
}

.login-input:focus {
    border-bottom-color: var(--dorado);
}

/* --- ENLACE "OLVIDÉ MI CONTRASEÑA" --- */
.login-link-olvido {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 12px;
    color: var(--dorado);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.login-link-olvido:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* --- BOTÓN DE INGRESO --- */
.login-btn {
    width: 100%;
    background-color: var(--bg-oscuro);
    color: var(--dorado);
    border: none;
    border-radius: 0;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.login-btn:hover {
    background-color: #000;
}

/* --- ALERTAS --- */
.alerta-login {
    background-color: transparent;
    border: 1px solid #f5c2c7;
    border-left: 3px solid #c97171;
    color: #842029;
    padding: 12px 16px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.alerta-login-exito {
    background-color: #eafaf1;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 769px) {
    .login-panel-marca {
        display: flex;
    }
    .login-panel-form {
        width: 50%;
    }
    .marca-movil {
        display: none;
    }
}
/* ============================================
   TRANSICIÓN DE PÁGINA (entrada / salida)
   ============================================ */
.login-wrapper {
    animation: loginEntrada 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginEntrada {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.pagina-saliendo .login-wrapper {
    animation: loginSalida 0.16s cubic-bezier(0.4, 0, 1, 1) forwards;
    pointer-events: none;
}

@keyframes loginSalida {
    from {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
    to {
        opacity: 0;
        filter: blur(2px);
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-wrapper,
    body.pagina-saliendo .login-wrapper {
        animation: none !important;
    }
}
