/* templates/classic/css/login.css */

/* --- IMPORTACIÓN DE FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* Se asume que Cinzel ya está cargada globalmente */

/* --- 1. CONTENEDOR PRINCIPAL --- */
.login-page-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    
    /* FUENTE GLOBAL: POPPINS */
    font-family: 'Poppins', sans-serif !important;
    color: #333;
}

/* --- 2. LA ELFA (IMAGEN FLOTANTE) --- */
.login-page-container::before {
    content: '';
    position: absolute;
    left: 50%; 
    top: 40%;
    margin-left: -650px; 
    transform: translateY(-50%);
    width: 500px;
    height: 600px;
    background-image: url('/img/misc/login.png'); /* TU IMAGEN PNG LIMPIA */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    z-index: 0;
    pointer-events: none;
}

/* --- 3. HEADER (TÍTULO PREMIUM) --- */
.login-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

.login-header h1 {
    /* FUENTE DE TÍTULO: CINZEL CON EFECTO METAL */
    font-family: 'Cinzel', serif !important;
    font-size: 3rem; /* Un poco más grande para impactar */
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
    line-height: 1;

    /* Efecto Degradado Metálico */
    background: linear-gradient(
        135deg, 
        #444444 0%, 
        #000000 40%, 
        #222222 70%, 
        #555555 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    
    /* Sombra suave */
    filter: drop-shadow(0px 4px 3px rgba(0,0,0,0.2));
}

.login-header p {
    font-family: 'Poppins', sans-serif !important;
    color: #777;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* --- 4. TARJETA DE FORMULARIO --- */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

/* --- 5. INPUTS Y FORMULARIOS (Estilo Botón Icono) --- */
.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: none; 
}

.input-wrapper {
    position: relative;
    width: 100%;
}

/* Estilo del Ícono a la Izquierda (Tipo Botón) */
.input-wrapper i:not(.toggle-password) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px; /* Ancho fijo */
    color: #666;
    font-size: 1rem;
    pointer-events: none;
    border-right: 2px solid #eee; /* Línea separadora */
    z-index: 5;
    background: transparent;
}

/* Icono Ojo (Toggle Password) a la Derecha */
.input-wrapper i.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    z-index: 6;
    transition: color 0.2s;
}
.input-wrapper i.toggle-password:hover { color: #333; }

/* Input de Texto */
.input-wrapper input {
    font-family: 'Poppins', sans-serif !important;
    width: 100%;
    height: 50px; /* Altura cómoda */
    /* Padding clave: 60px izquierda para el icono, 40px derecha para el ojo */
    padding: 10px 40px 10px 60px; 
    border: 2px solid #eee; /* Borde más sólido */
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: all 0.3s;
    font-weight: 500;
}

.input-wrapper input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.input-wrapper input::placeholder { color: #aaa; font-weight: 400; }

/* --- 6. OPCIONES --- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 30px;
    color: #666;
}

.remember-me {
    font-family: 'Poppins', sans-serif !important;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}
.remember-me input { 
    margin-right: 8px; 
    width: 16px; 
    height: 16px; 
    accent-color: #000; 
}

.forgot-link {
    font-family: 'Poppins', sans-serif !important;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.forgot-link:hover { text-decoration: underline; color: #000; }

/* --- 7. BOTÓN ENTRAR --- */
.btn-login-submit {
    font-family: 'Poppins', sans-serif !important;
    background-color: #000;
    color: #fff;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-login-submit:hover {
    background-color: #222;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- 8. FOOTER --- */
.login-footer {
    font-family: 'Poppins', sans-serif !important;
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-footer a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}
.login-footer a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .login-page-container::before {
        left: 0;
        margin-left: 0;
        opacity: 0.1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .login-page-container::before {
        display: none;
    }
}