/*
  Estilos compartidos de las pantallas de voluntarios y administración
  (login, dashboard, admin). Mismos colores que el kiosco, tomados del logo de
  Conquistando Sonrisas: azul marino, celeste y amarillo.

  Diseño sencillo y ligero: sin degradados, sombras pesadas ni tipografías descargadas.
  Pensado primero para celular (que es lo que usan los voluntarios) y luego para computadora.
*/
:root {
  --fondo: #0D1530;
  --superficie: #121C3F;
  --borde: #2A3B72;
  --borde-suave: #22305F;
  --texto: #F4F7FF;
  --texto-suave: #A9B8DE;
  --celeste: #92CAEE;
  --amarillo: #F3C93A;
  --marino: #263870;
  --verde: #4ADE80;
  --error: #FCA5A5;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--fondo);
  color: var(--texto);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

[hidden] { display: none !important; }

h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.3px; }
p { margin: 0; }
a { color: var(--celeste); }

/* ---- Marca ---- */
.marca { display: flex; flex-direction: column; align-items: center; text-align: center; }
.marca img { width: 88px; height: 88px; display: block; }
.marca .nombre { margin-top: 14px; font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
.marca .ong { margin-top: 2px; font-size: 16px; color: var(--celeste); }

/* ---- Tarjeta y formularios ---- */
.tarjeta {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 24px;
}

label { display: block; margin: 18px 0 6px; font-size: 15px; font-weight: 600; color: var(--texto-suave); }
input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 18px;          /* 16 px o más evita que el celular acerque la pantalla al tocar el campo */
  color: var(--texto);
  background: var(--fondo);
  border: 2px solid var(--borde);
  border-radius: 12px;
}
input:focus { outline: none; border-color: var(--celeste); }
input[aria-invalid="true"] { border-color: var(--error); }
input::placeholder { color: #5B6C9F; }

.boton {
  display: block;
  width: 100%;
  height: 54px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  color: var(--marino);
  background: var(--amarillo);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.boton:disabled { background: var(--borde-suave); color: #6F80B3; cursor: not-allowed; }
.boton:focus-visible, .boton-texto:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
.boton-secundario { background: var(--borde-suave); color: var(--texto); }

.boton-texto {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--celeste);
  background: none;
  border: 0;
  padding: 0 4px;
  cursor: pointer;
}

.mensaje { min-height: 24px; margin: 12px 0; font-size: 15px; line-height: 1.4; color: var(--error); }
.mensaje.ok { color: var(--verde); }

/* ---- Insignia de entorno (solo fuera de producción) ---- */
.insignia-entorno {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--marino);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ---- Barra superior de las pantallas internas ---- */
.barra-superior {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--borde-suave);
}
.barra-superior img { width: 44px; height: 44px; display: block; }
.barra-superior .titulos { margin-left: 12px; flex: 1 1 auto; min-width: 0; }
.barra-superior .t1 { font-size: 18px; font-weight: 800; }
.barra-superior .t2 { font-size: 13px; color: var(--celeste); }
.barra-superior .t1, .barra-superior .t2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-superior .boton { width: auto; flex: 0 0 auto; margin-left: 12px; height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }

/* ---- Pantallas internas provisionales ---- */
.contenido { width: 100%; max-width: 720px; margin: 0 auto; padding: 32px 16px; }
.contenido .saludo { font-size: 30px; font-weight: 800; letter-spacing: -0.4px; }
.contenido .rol { margin-top: 6px; color: var(--texto-suave); font-size: 17px; }
.aviso-construccion {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--superficie);
  border: 1px dashed var(--borde);
  border-radius: 16px;
  color: var(--texto-suave);
  line-height: 1.5;
}

#reintentar.boton-corto, .boton-corto { max-width: 220px; margin-top: 12px; }
.raiz { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.raiz-texto { margin-top: 14px; color: var(--texto-suave); }
.raiz-enlace { margin-top: 12px; text-align: center; }

@media (min-width: 640px) {
  .tarjeta { padding: 36px 36px 28px; }
}
