/* ============================================================
   ESTILO CORPORATIVO PERFOTECNICA (Adiós a la baticueva)
   ============================================================ */

:root {
  --primary: #2a3e52; /* El azul elegante de Perfotecnica */
  --primary-dark: #1b2836; 
  --gray-light: #f4f7f9; /* Fondo gris clarito */
  --white: #ffffff;
  --text-dark: #333333; 
  --border: #cdd4dc; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--gray-light); /* Luz, al fin */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-wrapper {
    width: 100%;
    max-width: 420px; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-superior {
    margin-bottom: 25px;
    text-align: center;
}

.logo-superior img {
    max-width: 240px; 
    height: auto;
    /* Le quité esa sombra dramática que le tenías al logo */
}

/* La tarjeta blanca civilizada */
.auth-container {
    background: var(--white); 
    color: var(--text-dark);
    border-radius: 12px; /* Bordes suaves, no 18px exagerados */
    padding: 32px 28px 24px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); /* Sombra sutil, no un abismo negro */
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary); /* Título azul oscuro, no dorado */
    margin-top: 0;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark); /* Texto oscuro normal */
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 40px; 
    border-radius: 6px;
    border: 1px solid var(--border); 
    background: var(--white); /* Inputs blancos */
    color: var(--text-dark);
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

/* Efecto focus corporativo */
.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 62, 82, 0.1);
}

.icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999; 
    width: 18px;
    height: 18px;
    pointer-events: none; 
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999999;
    display: flex;
    padding: 4px;
}

.toggle-password:hover { color: var(--primary); }

.btn-container {
    text-align: center;
    margin-top: 24px;
}

/* El botón azul majestuoso */
.btn-primary {
    display: block;
    width: 100%; /* Que ocupe todo el ancho, como en el login */
    padding: 12px; 
    border-radius: 6px; 
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary); 
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Footer limpio */
.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alertas PHP (Adaptadas a la luz) */
.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid;
}
.alert-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}