@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Variables de colores */
:root {
    --color-crema: #F5F5DC;
    --color-crema-claro: #FFFEF7;
    --color-azul-celeste: #5B9BD5;
    --color-azul-oscuro: #4A90A4;
    --color-texto-oscuro: #2C3E50;
    --color-texto-medio: #5A6C7D;
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.pagina-login {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.85) 0%, rgba(255, 254, 247, 0.9) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header simplificado de autenticación */
.auth-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-crema-claro);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--sombra-suave);
}

.auth-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-header__logo img {
    height: 42px;
    width: auto;
    display: block;
}

.auth-header__link {
    font-family: 'Inter', sans-serif;
    color: var(--color-azul-celeste);
    text-decoration: none;
    font-weight: 600;
}
.auth-header__link:hover {
    color: var(--color-azul-oscuro);
    text-decoration: underline;
}

/* Fondo decorativo */
body.pagina-login::before {
    content: '';
    
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.85) 0%, rgba(255, 254, 247, 0.9) 100%);
    z-index: 0;
}

/* Contenedor principal */
.contenedor-login {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

/* Ajuste específico para página de recuperar contraseña */
body.pagina-recuperar .contenedor-login {
    padding-top: 2rem;
    padding-bottom: 3rem;
    align-items: flex-start;
}

body.pagina-recuperar .contenedor-columnas {
    margin-top: 1rem;
}

.contenedor-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    gap: 0;
    background: var(--color-crema-claro);
    border-radius: 30px;
    box-shadow: var(--sombra-media);
    overflow: hidden;
    min-height: 600px;
}

/* Columna Izquierda: Formulario */
.columna-formulario {
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-crema-claro);
}

.contenido-formulario {
    width: 100%;
    max-width: 450px;
}

.logo-login {
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Reducir margen del logo en recuperar contraseña */
body.pagina-recuperar .logo-login {
    margin-bottom: 1.5rem;
}

.imagen-logo {
    height: 60px;
    width: auto;
}

.header-formulario {
    margin-bottom: 2.5rem;
    text-align: left;
}

/* Reducir margen del header en recuperar contraseña */
body.pagina-recuperar .header-formulario {
    margin-bottom: 1.5rem;
}

.titulo-login {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-texto-oscuro);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    padding-bottom: 25px;
}

.subtitulo-login {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-texto-medio);
    line-height: 1.5;
}

.formulario-acceso {
    margin-bottom: 2rem;
}

.grupo-campo-login {
    margin-bottom: 1.5rem;
}

.etiqueta-campo-login {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-texto-oscuro);
    margin-bottom: 0.5rem;
}

.campo-entrada-login {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid #E0E0E0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--color-texto-oscuro);
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.campo-entrada-login:focus {
    border-bottom-color: var(--color-azul-celeste);
}

.campo-entrada-login::placeholder {
    color: #B0B0B0;
}

.boton-continuar {
    width: 100%;
    background: linear-gradient(135deg, var(--color-azul-celeste) 0%, var(--color-azul-oscuro) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.3);
    margin-top: 1rem;
}

.boton-continuar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 155, 213, 0.4);
}

.boton-continuar:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E0E0E0;
}

.divider-text {
    position: relative;
    background: var(--color-crema-claro);
    padding: 0 1rem;
    color: var(--color-texto-medio);
    font-size: 0.9rem;
}

/* Botones Sociales */
.botones-sociales {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.boton-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    background: white;
    color: var(--color-texto-oscuro);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.boton-social:hover {
    border-color: var(--color-azul-celeste);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.2);
}

.icono-social {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Enlace de Ayuda */
.ayuda-login {
    text-align: center;
    margin-bottom: 1.5rem;
}

.enlace-ayuda {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--color-azul-celeste);
    text-decoration: none;
    transition: color 0.3s ease;
}

.enlace-ayuda:hover {
    color: var(--color-azul-oscuro);
    text-decoration: underline;
}

/* Footer del formulario */
.form-footer-login {
    text-align: center;
    margin-top: 2rem;
}

.texto-footer-login {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--color-texto-medio);
}

.enlace-cuenta {
    color: var(--color-azul-celeste);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.enlace-cuenta:hover {
    color: var(--color-azul-oscuro);
    text-decoration: underline;
}

/* Nota de contraseña */
.nota-password {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--color-texto-medio);
}

/* Columna Derecha: Imagen */
.columna-imagen {
    background: linear-gradient(135deg, rgba(91, 155, 213, 0.1) 0%, rgba(74, 144, 164, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contenedor-imagen-login {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-login {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
}

/* Media Queries para Diseño Responsivo */

/* Tablets (menos de 968px) */
@media (max-width: 967px) {
    .contenedor-columnas {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .columna-imagen {
        display: none;
    }
    
    .columna-formulario {
        padding: 2.5rem 2.5rem;
    }
    
    .titulo-login {
        font-size: 2.25rem;
    }
}

/* Móviles (menos de 768px) */
@media (max-width: 767px) {
    .contenedor-login {
        padding: 2rem 1rem;
    }
    
    .contenedor-columnas {
        border-radius: 20px;
        min-height: auto;
    }
    
    .columna-formulario {
        padding: 2rem 1.5rem;
    }
    
    .contenido-formulario {
        max-width: 100%;
    }
    
    .logo-login {
        margin-bottom: 2rem;
    }
    
    .imagen-logo {
        height: 50px;
    }
    
    .titulo-login {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitulo-login {
        font-size: 1rem;
    }
    
    .header-formulario {
        margin-bottom: 2rem;
    }
    
    .campo-entrada-login {
        padding: 0.9rem 0;
        font-size: 0.95rem;
    }
    
    .boton-continuar {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .boton-social {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas (menos de 480px) */
@media (max-width: 479px) {
    .contenedor-login {
        padding: 1.5rem 0.75rem;
    }
    
    .contenedor-columnas {
        border-radius: 15px;
    }
    
    .columna-formulario {
        padding: 1.5rem 1rem;
    }
    
    .titulo-login {
        font-size: 1.75rem;
    }
    
    .subtitulo-login {
        font-size: 0.95rem;
    }
    
    .imagen-logo {
        height: 45px;
    }
    
    .boton-social {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .icono-social {
        width: 18px;
        height: 18px;
    }
}

/* Pantallas grandes (más de 1200px) */
@media (min-width: 1200px) {
    .contenedor-columnas {
        max-width: 1400px;
        min-height: 700px;
    }
    
    .columna-formulario {
        padding: 4rem 4rem;
    }
    
    .titulo-login {
        font-size: 2.75rem;
    }
    
    .subtitulo-login {
        font-size: 1.15rem;
    }
}
