/* Estilos compartidos por las pantallas de login/recuperación de contraseña
   del panel (login.php, forgot-password.php, reset-password.php). Se carga
   junto a base.css. */
/* Cabecera arriba a lo ancho y .auth-main centra la tarjeta en el espacio
   restante (las tres pantallas comparten el parcial auth-header.php). */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Cabecera con logo + banderas, como en el formulario público (evento.css) */
.header {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lang-switcher {
    display: flex;
    gap: 0.5rem;
}
.lang-switcher a {
    display: block;
    line-height: 0;
    opacity: 0.45;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border);
    transition: opacity .15s;
}
.lang-switcher a:hover,
.lang-switcher a.active { opacity: 1; }
.lang-switcher svg { display: block; width: 28px; height: auto; }
.auth-main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}
h1 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}
p.sub {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
}
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}
input[type="email"],
input[type="password"],
.password-wrap input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color .15s;
}
input:focus { border-color: var(--brand); }
.password-wrap {
    position: relative;
    margin-bottom: 1rem;
}
.password-wrap input {
    margin-bottom: 0;
    padding-right: 2.75rem;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: auto;
    padding: 0.25rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.toggle-password:hover {
    background: none;
    color: #475569;
}
.hint {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin: -0.6rem 0 1rem;
}
button {
    width: 100%;
    padding: 0.75rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
button:hover { background: var(--brand-dk); }
.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}
.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}
.forgot-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--brand);
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }
@media (max-width: 480px) {
    .card {
        padding: 1.75rem 1.25rem;
        border-radius: 0;
    }
    body { align-items: stretch; }
    .auth-main { padding: 0; align-items: stretch; }
    .auth-main .card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
    }
}
