/* ============================================================
   ESTILO CORPORATIVO DECENTE (Porque el anterior daba pena)
   ============================================================ */

:root {
  --primary: #0d6499;
  --primary-dark: #154a7a;
  --bg-light: #f0f2f5; /* Fondo civilizado */
  --white: #ffffff;
  --text-main: #333333; /* Porque el texto debe leerse, imagínate */
  --text-muted: #64748b; 
  --border: #cbd5e1;
}

/* 1. FONDO GENERAL */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg-light); /* Adios al #121212 depresivo */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main-wrapper {
    width: 100%;
    max-width: 420px; 
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. EL LOGO SUPERIOR */
.logo-superior {
    margin-bottom: 25px; 
    text-align: center;
}

.logo-superior img {
    max-width: 140px; 
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)); /* Sombra de alguien que sabe usar CSS */
}

/* 3. LA CAJA (El contenedor del formulario) */
.auth-container {
    background: var(--white); /* Bienvenido a la luz */
    color: var(--text-main);
    border-radius: 12px; /* Un poco menos curvo, no es un juguete */
    padding: 32px 28px 24px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Sombra corporativa, no un eclipse solar */
}

/* Título */
.auth-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary); /* Azul en lugar de tu amarillo radiactivo */
    margin-top: 0;
    margin-bottom: 24px;
}

/* 4. LOS INPUTS */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main); 
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px 7px 40px;
    border-radius: 4px;
    border: 1px solid #d8e1eb;
    background: #f9fbfd;
    color: var(--text-main);
    font-size: .84rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 168, 96, 0.16);
}

/* Iconos de Lucide */
.icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; 
    width: 18px;
    height: 18px;
    pointer-events: none; 
}

/* Icono del Ojo */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    padding: 4px;
    transition: color 0.2s;
}
.toggle-password:hover { color: var(--primary); }

/* 5. EL BOTÓN */
.btn-container {
    text-align: center; 
    margin-top: 24px;
}

.btn-primary {
    display: block;
    width: 100%; /* Mejor ancho completo para formularios de registro */
    padding: 12px; 
    border-radius: 6px; 
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: var(--white);
    background: var(--primary); /* Azul glorioso */
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 6. Footer (Link) */
.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* ALERTAS PHP (Adaptadas a ojos humanos) */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}
