/* Matches the Blazebite Business Portal login: black page, logo on top, white card.
   Colors come from the portal's Tailwind "brand-red" scale. */
:root {
  --page: #000000;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --brand: #b13a31;
  --brand-hover: #a32e26;
  --brand-text: #ffffff;
  --alert-bg: #fdf3f3;
  --alert-border: #fbcdc9;
  --alert-text: #872923;
  --badge-bg: #fef3c7;
  --badge-text: #78350f;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.5 Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 32px;
}

.logo {
  width: 192px;
  max-width: 70%;
  height: auto;
  margin-bottom: 32px;
}

.card {
  width: 100%;
  max-width: 384px;
  padding: 28px 24px;
  background: var(--surface);
  border-radius: 10px;
}

h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.muted {
  margin: 2px 0 24px;
  color: var(--muted);
  text-align: center;
}

.muted strong {
  color: var(--text);
  font-weight: 600;
}

.badge {
  display: table;
  margin: 0 auto 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8rem;
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

input {
  width: 100%;
  margin-bottom: 16px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  font: inherit;
}

button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled,
input:disabled {
  opacity: 0.6;
  cursor: default;
}

button.primary {
  background: var(--brand);
  color: var(--brand-text);
}

button.primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

button.secondary {
  background: transparent;
  border-color: var(--border);
  color: inherit;
}

button + button {
  margin-top: 10px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.identity {
  margin: -18px 0 24px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}

.alert {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--alert-border);
  border-radius: 6px;
  background: var(--alert-bg);
  color: var(--alert-text);
  font-size: 0.9rem;
}

.footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer a {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}
