/* Aspecto común de las páginas de acceso (lo que se ve sin entrar): login.php, verificar.php y cambiar-clave.php.
   Sobrio: el azul noche de los correos (fondo #0f172a, tarjeta #1e293b), botón grafito plano y sin brillos, para que el
   único color sea el naranja del logo. Los colores van en variables para
   que los temas de temporada (temporadas.css, body.temporada) los cambien sin tocar nada más. */
:root {
    --fondo: #0f172a;
    --tarjeta: #1e293b;
    --borde: rgba(255, 255, 255, 0.1);
    --texto: #f8fafc;
    --tenue: #94a3b8;
    --etiqueta: #cbd5e1;
    --campo: #0f172a;
    --borde-campo: #334155;
    --acento: #64748b;
    --acento-suave: rgba(255, 255, 255, 0.06);
    --enlace: #e2e8f0;
    --boton: #334155;
    --boton-hover: #3d4b61;
    --boton-texto: #f8fafc;
}
/* Con un tema de temporada, su color manda (las variables --accent… las pone temporadas.css en el body) */
body.temporada { --acento: var(--accent); --acento-suave: var(--accent-soft); --enlace: var(--accent-text); }
.temporada .btn-save { color: #fff; border-color: transparent; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--fondo); color: var(--texto); min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px; -webkit-font-smoothing: antialiased;
}

@keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.marca { position: relative; margin-bottom: 26px; animation: entrar .5s ease-out; }
.marca img { display: block; height: 46px; width: auto; }

.card {
    position: relative; width: 100%; max-width: 400px; background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: 18px; padding: 30px 28px 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    text-align: left; animation: entrar .5s ease-out;
}
@media (max-width: 420px) { .card { padding: 26px 20px 20px; } }

h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.2px; margin-bottom: 20px; color: #fff; }
p.subtitle { color: var(--tenue); font-size: 14px; line-height: 1.55; margin: -12px 0 22px; }

label.etiqueta { display: block; font-size: 12.5px; font-weight: 600; color: var(--etiqueta); margin-bottom: 7px; }
.campo { position: relative; margin-bottom: 16px; }
input, textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--texto); background: var(--campo);
    border: 1px solid var(--borde-campo); border-radius: 10px; padding: 13px 14px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #64748b; }
input:focus, textarea:focus { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }
.campo input[type="password"], .campo input.con-ojo { padding-right: 46px; }

/* Ver la contraseña (acceso.js) */
.ojo { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; color: var(--tenue); cursor: pointer; }
.ojo:hover { color: #fff; }
.ojo:focus-visible { outline: 2px solid var(--acento); }

.fila-olvido { display: flex; justify-content: flex-end; margin: -6px 0 20px; }
/* «Mantener la sesión iniciada» (login.php) */
.casilla { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; margin: -8px 0 20px; color: var(--etiqueta); font-size: 13px; line-height: 1.4; cursor: pointer; }
.casilla input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--acento); }
.casilla small { grid-column: 2; font-size: 11.5px; opacity: .75; }
.enlace { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--enlace); text-decoration: none; cursor: pointer; }
.enlace:hover { text-decoration: underline; }

.btn-save {
    width: 100%; font: inherit; font-size: 15px; font-weight: 650; border: 1px solid #475569; border-radius: 10px; padding: 14px;
    cursor: pointer; background: var(--boton); color: var(--boton-texto);
    transition: background .2s, transform .2s;
}
.btn-save:hover { background: var(--boton-hover); }
.btn-save:active { transform: translateY(1px); }

.alert { padding: 13px 15px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; margin-bottom: 20px; border: 1px solid; }
.error { background: rgba(239, 68, 68, 0.08); color: #fca5a5; border-color: rgba(239, 68, 68, 0.22); }
.success { background: rgba(16, 185, 129, 0.08); color: #86efac; border-color: rgba(16, 185, 129, 0.22); }
.aviso { background: rgba(245, 158, 11, 0.08); color: #fcd34d; border-color: rgba(245, 158, 11, 0.24); }
.alert b, .alert strong { color: inherit; }

.footer-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--borde); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; color: var(--tenue); }
.tab-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--tenue); text-decoration: none; cursor: pointer; }
.tab-btn:hover { color: #fff; }

.hp-field { display: none !important; }
.temporada-msg { position: relative; }
