/* Shared staff/PIN login overlay — one source of truth for pos.html and driver.html.
   PROJECT_STATE records the "Acceso rápido" bar drifting because it was written twice
   with no shared stylesheet; do not inline copies of this. Tokens match store.html. */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0a0a0a;
  font-family: 'Inter', sans-serif;
}
.auth-overlay[hidden] { display: none !important; }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 36px;
  text-align: center;
}
.auth-logo {
  /* Identical to .login-logo on /login — same artwork, same size, everywhere. */
  height: 5rem; width: auto; max-width: 200px;
  display: block; margin: 0 auto 12px;
  object-fit: contain;
}
/* Shown when no store logo can be resolved — which is the normal case on
   pos.kioscopos.com / chofer.kioscopos.com, where there is no store context
   before someone signs in. Without this the card had no brand at all. */
.auth-brand {
  display: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px; font-weight: 600; letter-spacing: 3px;
  color: #d4af37; margin-bottom: 4px;
}
.auth-brand.is-shown { display: block; }
.auth-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: #646464; margin: 0 0 32px;
}
.auth-field { display: block; text-align: left; margin-bottom: 20px; }
.auth-field > span {
  display: block; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: #a0a0a0; margin-bottom: 8px;
}
.auth-field input {
  width: 100%; padding: 13px 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
  color: #ffffff;
  font-family: 'Inter', sans-serif; font-size: 15px;
  transition: border-color 0.35s ease;
}
.auth-field input:focus { outline: none; border-color: #d4af37; }
.auth-field input.auth-pin {
  letter-spacing: 10px; text-align: center; font-size: 20px; padding-left: 26px;
}
.auth-btn {
  width: 100%; padding: 14px 20px;
  background: #d4af37; color: #0a0a0a;
  border: 1px solid #d4af37; border-radius: 0 !important;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: all 0.35s ease;
}
.auth-btn:hover:not(:disabled) { background: transparent; color: #d4af37; }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; }
.auth-error {
  margin-top: 16px; padding: 11px 14px;
  border: 1px solid rgba(220, 80, 80, .45);
  background: rgba(220, 80, 80, .08);
  color: #ff9d9d; font-size: 13px; text-align: left;
}
.auth-error[hidden] { display: none !important; }
.auth-back {
  display: inline-block; margin-top: 22px;
  color: #646464; font-size: 12px; letter-spacing: 1px; text-decoration: none;
  border-bottom: 1px solid transparent; transition: all 0.35s ease;
}
.auth-back:hover { color: #d4af37; border-bottom-color: rgba(212, 175, 55, .4); }

@media (max-width: 480px) {
  .auth-card { padding: 32px 22px; }
  .auth-card h2 { font-size: 25px; }
}
