/* ============================================================================
   Páginas de acceso — login, recuperar y restablecer contraseña
   Cruz Roja Colombiana Seccional Norte de Santander

   Las tres traían el MISMO bloque <style> copiado en línea (fondo azul→rojo,
   tarjeta blanca, botón rojo con degradado, Arial). Aquí queda una sola hoja,
   alineada con el resto del portal: verde institucional, fondo gris con sesgo
   verde y el logo real en vez de un emoji.
   ============================================================================ */

:root {
    --verde: #059669;
    --verde-osc: #047857;
    --verde-hond: #064E3B;
    --tinta: #0F2A22;
    --tinta-2: #4A5F58;
    --fondo: #F4F7F5;
    --borde: #E3EAE6;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--fondo);
    color: var(--tinta);
    margin: 0;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* Franja verde superior: identifica el portal sin cargar el banner entero. */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(100deg, var(--verde-hond), var(--verde), #0E7490);
}

.auth-tarjeta {
    max-width: 420px;
    width: 100%;
    background: #fff;
    padding: 36px 34px;
    border-radius: 16px;
    border: 1px solid var(--borde);
    box-shadow: 0 1px 2px rgba(15, 42, 34, .05), 0 18px 40px -20px rgba(15, 42, 34, .3);
}

.auth-marca {
    text-align: center;
    margin-bottom: 26px;
}

.auth-marca img {
    height: 52px;
    width: auto;
    margin-bottom: 14px;
}

.auth-marca h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    color: var(--tinta);
}

.auth-marca p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--tinta-2);
}

.auth-campo {
    margin-bottom: 16px;
}

.auth-campo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--tinta);
}

.auth-campo input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--tinta);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-campo input:focus {
    border-color: var(--verde);
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.auth-boton {
    width: 100%;
    padding: 12px;
    background: var(--verde);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.auth-boton:hover { background: var(--verde-osc); }
.auth-boton:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }

.auth-enlace {
    text-align: center;
    margin: 16px 0 0;
    font-size: 0.85rem;
}

.auth-enlace a {
    color: var(--verde-osc);
    text-decoration: none;
    font-weight: 500;
}

.auth-enlace a:hover { text-decoration: underline; }

/* ── Avisos ── */

.alert {
    padding: 11px 13px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
}

.alert-error,
.alert-danger { background: #FBE9E9; color: #8E1515; }
.alert-success { background: #E7F4EE; color: #047857; }
.alert-info    { background: #E4EEFA; color: #14538A; }
.alert-warning { background: #FBF0DD; color: #8A4708; }

.auth-nota {
    margin-top: 22px;
    padding: 13px;
    background: var(--fondo);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--tinta-2);
    line-height: 1.55;
    text-align: center;
}

.auth-nota strong { color: var(--tinta); }

@media (max-width: 420px) {
    .auth-tarjeta { padding: 28px 22px; }
    .auth-marca img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
