:root {
    --kcm-blue: #00b4eb;
    --kcm-light-blue: #009acc;
    --kcm-dark: #1e293b; /* Slate 800 para textos principales */
    --kcm-gray: #64748b; /* Slate 500 para textos secundarios */
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc; /* Fondo súper claro */
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

/* Tarjeta Blanca y Limpia */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 45px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
}

/* Título */
.login-title {
    color: var(--kcm-dark);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Contenedor del logo con diseño Premium y Moderno */
.avatar-container {
    width: 85px;
    height: 85px;
    margin: 0 auto 35px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f1f8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 0 4px rgba(0, 180, 235, 0.1),
        0 10px 25px rgba(0, 180, 235, 0.25),
        inset 0 4px 6px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 180, 235, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-container:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 0 6px rgba(0, 180, 235, 0.15),
        0 15px 30px rgba(0, 180, 235, 0.4),
        inset 0 4px 6px rgba(255, 255, 255, 0.8);
}

.avatar-container img {
    width: 55px; /* Margen interno elegante */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.avatar-container:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Animación de latido sutil */
.avatar-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: rgba(0, 180, 235, 0.1);
    z-index: -1;
    animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Diseño de Inputs: Estilo form-floating de visitas adaptado al tema claro */
.form-floating > .form-control {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--kcm-dark);
    font-size: 15px;
    box-shadow: none !important;
}

/* Etiqueta flotante */
.form-floating > label {
    color: var(--kcm-gray);
    font-weight: 400;
}

/* Efecto Focus (KCM Azul) */
.form-floating > .form-control:focus {
    border-color: var(--kcm-blue);
    box-shadow: 0 0 0 4px rgba(0, 180, 235, 0.15) !important;
    background-color: #ffffff;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--kcm-blue) !important;
}

/* Opciones inferiores */
.options-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--kcm-gray);
}

.form-check-input {
    cursor: pointer;
    border-color: #cbd5e1;
}

.form-check-input:checked {
    background-color: var(--kcm-blue);
    border-color: var(--kcm-blue);
}

.form-check-label {
    cursor: pointer;
}

.forgot-link {
    color: var(--kcm-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--kcm-blue);
}

/* Botón de Ingreso Cyan Sólido */
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: var(--kcm-blue);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 180, 235, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    background: var(--kcm-light-blue);
    box-shadow: 0 15px 25px rgba(0, 180, 235, 0.3);
}

/* Footer extra */
.footer-text {
    margin-top: 25px;
    font-size: 14px;
    color: var(--kcm-gray);
}

.footer-text a {
    color: var(--kcm-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--kcm-blue);
}

/* Autofill Chrome fix para inputs claros */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--kcm-dark) !important;
    border-color: var(--kcm-blue) !important;
}
