/*
  Páginas de acceso sin sesión: forgot_password y recover_password.
  Mismo fondo que el login (azul con partículas) y una tarjeta centrada.
*/
:root {
    --auth-primary: #0478D7;
    --auth-primary-dark: #035fa8;
    --auth-ink: #1c2a3f;
    --auth-ink-soft: #45526b;
    --auth-muted: #8a97ab;
    --auth-border: #dfe4ec;
    --auth-bg-soft: #f5f7fa;
    --auth-success: #1a9e73;
    --auth-danger: #d64545;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--auth-ink);
    background: rgb(27, 93, 179);
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.auth {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(10, 30, 60, .25);
    padding: 40px 36px 32px;
}

.auth-logo { display: inline-block; margin-bottom: 24px; }
.auth-logo img { width: 52px; height: auto; display: block; }

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
}

.auth-sub {
    margin: 0 0 24px;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--auth-ink-soft);
}

.auth-field { margin-bottom: 18px; }

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--auth-ink-soft);
}

.auth-input-wrap { position: relative; }

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: .95rem;
    color: var(--auth-ink);
    background: var(--auth-bg-soft);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.auth-input-wrap input { padding-right: 64px; }

.auth-field input:focus {
    background: #fff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 215, .15);
}

.auth-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 6px 8px;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    color: var(--auth-primary);
    cursor: pointer;
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background: var(--auth-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

.auth-btn:hover { background: var(--auth-primary-dark); }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; }

.auth-alert {
    margin: 0 0 20px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: .86rem;
    line-height: 1.5;
}

.auth-alert.error { background: #fdecec; color: #a93434; }
.auth-alert.success { background: #e6f6f0; color: #127453; }

.auth-rules {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: .78rem;
    color: var(--auth-muted);
}

.auth-rules li::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--auth-border);
    vertical-align: 1px;
}

.auth-rules li.ok { color: var(--auth-success); }
.auth-rules li.ok::before { background: var(--auth-success); }

.auth-hint { margin-top: 6px; font-size: .78rem; color: var(--auth-danger); min-height: 1em; }

.auth-back {
    display: inline-block;
    margin-top: 22px;
    font-size: .85rem;
    color: var(--auth-muted);
    text-decoration: none;
}

.auth-back:hover { color: var(--auth-primary); }

.auth-center { text-align: center; }

@media (max-width: 480px) {
    .auth-card { padding: 32px 22px 26px; }
    .auth-rules { grid-template-columns: 1fr; }
}
