/* Estilos compartidos por las pantallas de cuenta: login, registro,
   recuperación de contraseña. Reutiliza las mismas tipografías locales que
   el resto de Cartelera, sin depender de Google Fonts. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/bebas-neue-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root{
  --bg: #0d0d10;
  --panel: #16161b;
  --border: #2a2a32;
  --text: #f1f1f3;
  --muted: #a3a3ad;
  --accent: #ff7a3d;
  --accent-hover: #ff9260;
  --danger: #ff5c6c;
  --ok: #37c793;
  --focus: #7ab8ff;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', system-ui, sans-serif;
  padding:24px;
}

.auth-card{
  width:100%;
  max-width:400px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:32px 28px;
}

.auth-card h1{
  font-family:'Bebas Neue', sans-serif;
  letter-spacing:0.06em;
  font-size:2rem;
  margin:0 0 4px;
  color:var(--accent);
}

.auth-card p.subtitle{
  margin:0 0 24px;
  color:var(--muted);
  font-size:0.92rem;
  line-height:1.4;
}

.campo{
  margin-bottom:16px;
}

.campo label{
  display:block;
  margin-bottom:6px;
  font-size:0.88rem;
  color:var(--muted);
}

.campo input{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#0f0f13;
  color:var(--text);
  font-size:0.95rem;
  font-family:inherit;
}

.campo input:focus{
  outline:2px solid var(--focus);
  outline-offset:1px;
  border-color:var(--focus);
}

.campo small.ayuda{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:0.8rem;
  line-height:1.35;
}

button.principal{
  width:100%;
  padding:11px;
  border:none;
  border-radius:8px;
  background:var(--accent);
  color:#1a0e08;
  font-weight:600;
  font-size:0.98rem;
  cursor:pointer;
  font-family:inherit;
}
button.principal:hover{ background:var(--accent-hover); }
button.principal:disabled{ opacity:0.6; cursor:default; }

.enlaces{
  margin-top:18px;
  text-align:center;
  font-size:0.87rem;
  color:var(--muted);
}
.enlaces a{
  color:var(--focus);
  text-decoration:none;
}
.enlaces a:hover{ text-decoration:underline; }

.aviso{
  margin:0 0 18px;
  padding:10px 12px;
  border-radius:8px;
  font-size:0.87rem;
  line-height:1.4;
}
.aviso--error{
  background:rgba(255,92,108,0.12);
  border:1px solid rgba(255,92,108,0.4);
  color:#ffb3ba;
}
.aviso--ok{
  background:rgba(55,199,147,0.12);
  border:1px solid rgba(55,199,147,0.4);
  color:#8fe9c9;
}
.aviso--info{
  background:rgba(122,184,255,0.1);
  border:1px solid rgba(122,184,255,0.35);
  color:#bcdcff;
}

.hidden{ display:none !important; }

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