
:root {
    --primary-color: #2A5CAA;
    --secondary-color: #3A7BDA;
    --error-color: #e74c3c;
    --text-color: #2c3e50;
    --background-gradient: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);

    /* NUEVO: gris del logo K */
    --kp-gray: #9B9DA1;   /* ajusta si lo quieres más claro/oscuro */
    --kp-gray-dark: #7E8085;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-gradient);
    padding: 1rem;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.company-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-heading {
    margin-bottom: 0.5rem;
    line-height: 1;
}

.company-logo {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.company-brand h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.company-brand p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42,92,170,0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    fill: #7f8c8d;
    transition: fill 0.3s ease;
}

.form-input:focus + .input-icon {
    fill: var(--primary-color);
}

.login-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--kp-gray), var(--kp-gray-dark));
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

/* Hover: KP amarillo (pero sin “raro” ni duplicado) */
.login-button:hover {
  background: linear-gradient(135deg, #F59E0B, #FFD000);
  transform: translateY(-1px);
  opacity: 0.98;
}

.login-button:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.5);
  outline-offset: 3px;
}



.error-message {
    background: #fee;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--error-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.additional-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.security-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #27ae60;
    font-size: 0.85rem;
    font-weight: 500;
}

.shield-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}




.dashboard-header .logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0; /* evita espacios raros */
}

:root{
  --kp-yellow: #F59E0B; /* el “amarillo raro” */
}

.dashboard-header .logo-img{
  height: 26px;     /* prueba 24–30 */
  max-height: 28px; /* cinturón de seguridad */
  width: auto;
  object-fit: contain;
  display: block;
}


/* Si quieres un hover sutil (sin “negro”): */
.dashboard-header .logo-link:hover .logo-img {
  filter: brightness(1.05);
}



@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .company-brand h1 {
        font-size: 1.8rem;
    }
    
    .additional-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}