* { box-sizing: border-box; }

/* The native `hidden` attribute only works via the UA stylesheet's `display: none`; any author
   rule that sets `display` on the same element (e.g. `.btn-link` below) overrides it by
   specificity. This rule re-asserts `display: none` for every element carrying `hidden`,
   regardless of which other classes it has. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040404;
  font-family: Helvetica, Arial, sans-serif;
  color: #eee;
}

.card {
  width: 320px;
  padding: 40px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #161616;
  text-align: center;
}

.logo { width: 56px; height: 56px; }

h1 { font-size: 1.6rem; font-weight: 400; margin: 12px 0 28px; }

.btn {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 1rem;
  cursor: pointer;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.google .g { font-weight: 700; color: #4285f4; margin-right: 6px; }

form { display: flex; gap: 8px; }

#email {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #0d0d0d;
  color: #eee;
}

form .btn { width: auto; }

.hint { font-size: 0.75rem; color: #888; margin: 10px 0 0; }

/* TEMP(break-glass): temporary staff break-glass login styling, see design.md's removal
   checklist — remove alongside the markup in index.html / login.js. */
.btn-link {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  border: none;
  background: none;
  color: #3b82f6;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

#breakglass-form { flex-direction: column; }

#breakglass-email,
#breakglass-password {
  padding: 10px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #0d0d0d;
  color: #eee;
}

#breakglass-form .btn { width: 100%; }

.error { color: #e5476d; font-size: 0.85rem; min-height: 1em; margin: 16px 0 0; }

#identifier { margin: 20px 0 0; text-align: left; }
#identifier .hint a { color: #3b82f6; }
