/* =============================================================
   auth.css  —  GastuApp
   Ruta: usuarios/static/usuarios/css/auth.css
   Estilos base compartidos por login y register
   ============================================================= */

/* ── Fondo ─────────────────────────────────────────────────── */
.auth-bg {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(16,185,129,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(148,163,184,0.05) 0%, transparent 55%),
    #f8fafc;
}

.auth-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
}

/* ── Navbar override en páginas auth ───────────────────────── */
#navbar {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ── Inputs ─────────────────────────────────────────────────── */
.auth-input {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-input::placeholder { color: #94a3b8; }

.auth-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-input.input-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
}

.auth-input.input-ok {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

/* ── Labels y errores ──────────────────────────────────────── */
.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
}

.field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 5px;
  min-height: 16px;
}