/*
 * Archivo: .../login/resources/css/estilos-personalizados.css
 * Tema: Fondo Blanco (Clean Look)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- 1. FONDO PRINCIPAL --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
    /* CAMBIO: Fondo blanco */
    background: #ffffff !important; 
    /* CAMBIO: Texto base oscuro */
    color: #333333 !important;
}

/* Contenedor principal */
.login-pf-page {
    background-color: transparent !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- 2. LA TARJETA (CARD) --- */
.card-pf {
    /* CAMBIO: Fondo blanco sólido */
    background-color: #ffffff !important; 
    border-radius: 16px !important;
    /* Agregamos una sombra suave para que destaque sobre el fondo blanco */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    border: 1px solid #e0e0e0; /* Borde sutil */
    padding: 40px !important;
    max-width: 450px;
    width: 100%;
    margin-top: 20px;
}

/* Títulos y Header - CAMBIO COLOR A OSCURO */
#kc-page-title {
    color: #1a1a1a !important; /* Casi negro */
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
    margin-top: 0;
}

#kc-header-wrapper {
    color: #333333; /* Texto oscuro */
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* --- 3. INPUTS Y LABELS --- */
/* Labels - CAMBIO COLOR A OSCURO */
.pf-c-form__label-text {
    color: #555555 !important;
    font-size: 14px;
    font-weight: 600;
}

/* Inputs - Necesitan borde porque el fondo es blanco */
.pf-c-form-control {
    border: 1px solid #cccccc !important; /* Borde gris */
    border-radius: 8px !important;
    height: 45px;
    background-color: #f9f9f9 !important; /* Un gris muy clarito de fondo */
    color: #333 !important;
    margin-top: 5px;
}

.pf-c-form-control:focus {
    border-color: #f26522 !important; /* Borde naranja al hacer click */
    background-color: #fff !important;
}

/* --- 4. EL BOTÓN (Mantenemos tu naranja) --- */
.pf-c-button.pf-m-primary {
    background: linear-gradient(to right, #f26522, #f89c1c) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 0;
    height: auto !important;
    font-size: 16px;
    color: #ffffff !important; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pf-c-button.pf-m-primary::after {
    border: none !important;
}

.pf-c-button.pf-m-primary:hover {
    background: linear-gradient(to right, #f89c1c, #f26522) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 101, 34, 0.3); /* Sombra naranja */
}

/* Links */
#kc-form-options a, 
#kc-registration a,
.login-pf-settings a {
    color: #f26522 !important; /* Enlaces naranjas */
    text-decoration: none;
    font-weight: 500;
}

#kc-form-options a:hover {
    text-decoration: underline;
}

/* Checkbox texto oscuro */
.checkbox label {
    color: #555 !important;
}