/* Pantallas de acceso que NO son el sitio público: el segundo factor del
   panel y el login del área de soporte.

   Hoja aparte y pequeña a propósito: styles.css son 1.700 líneas pensadas
   para la web, y aquí solo hace falta una tarjeta centrada.
   Mismos colores de marca que el sitio. */

:root {
  --navy:       #233D63;
  --navy-dark:  #182b47;
  --gold:       #FFBE56;
  --blue:       #4A7CED;
  --bg:         #F8F9FC;
  --text:       #33373d;
  --text-muted: #5f6e84;
  --border:     #e4e8f0;
  --radius:     12px;
  --radius-sm:  6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.pantalla-centrada {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tarjeta-acceso {
  background: #fff;
  border-radius: var(--radius);
  /* min(...) para que a 360px la tarjeta ceda en vez de desbordar. */
  width: min(440px, 100%);
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px);
  text-align: center;
  box-shadow: 0 4px 24px rgba(35,61,99,.1);
}

.acceso-emoji { font-size: 44px; margin-bottom: 12px; }

.tarjeta-acceso h1 {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  color: var(--navy);
  margin: 0 0 10px;
}

.acceso-texto { color: var(--text-muted); font-size: .92rem; margin: 0 0 24px; }

.acceso-error,
.acceso-aviso {
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  margin-bottom: 1rem;
  text-align: left;
}
.acceso-error { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.2); color: #b91c1c; }
.acceso-aviso { background: rgba(74,124,237,.07); border: 1px solid rgba(74,124,237,.2); color: var(--navy); }

.acceso-label {
  display: block;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

.acceso-campo,
.acceso-codigo {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  margin-bottom: 1rem;
}
.acceso-codigo {
  text-align: center;
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  letter-spacing: .4em;
  /* El letter-spacing empuja el texto a la derecha: se compensa para que
     las seis cifras queden ópticamente centradas. */
  text-indent: .4em;
  font-weight: 700;
}
.acceso-campo:focus,
.acceso-codigo:focus { outline: none; border-color: var(--blue); }

.acceso-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--gold);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.acceso-btn:hover { background: var(--navy-dark); }

.acceso-reenviar { margin-top: 1.25rem; }
.acceso-enlace {
  background: none;
  border: none;
  color: var(--blue);
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
  padding: .5rem;
  min-height: 44px;
}
.acceso-enlace:hover { text-decoration: underline; }

.acceso-pie {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.acceso-pie a { color: var(--blue); text-decoration: none; }
