/* Login gate — visually consistent with public/index.html. */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 28px 28px 22px;
}

.login-card header { margin-bottom: 18px; text-align: center; }
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.subtitle { color: #666; margin: 0; font-size: 13px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  font-weight: 600;
}
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px; /* 16+ so iOS doesn't zoom on focus */
  background: #fff;
}
input[type="password"]:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.btn {
  width: 100%;
  display: inline-block;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: #0ea5e9;
  color: #fff;
  border-color: #0284c7;
}
.btn-primary:hover { background: #0284c7; }
.btn-primary:disabled { opacity: 0.55; cursor: progress; }

.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.hidden { display: none !important; }

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.muted { font-size: 11px; color: #9ca3af; margin: 0; }
