/* Sign-in page. Shares the palette with the admin UI but stands alone — it is
   served before authentication, so it must not depend on style.css or on
   anything else behind the gate. */

:root {
  --accent: #ff0000;
  --accent-hover: #d90000;
  --accent-weak: rgba(255, 0, 0, 0.08);
  --text: #323232;
  --text-muted: #545454;
  --text-faint: #8a8a8a;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --border: #e4e6e8;
  --border-strong: #d3d6d9;
  --danger: #a4161a;
  --danger-weak: #fbeaea;
  --radius: 10px;
  --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  /* A restrained wash of the brand colour rather than a field of it: this is a
     sign-in page, not an alert. */
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(255, 0, 0, 0.07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 384px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(50,50,50,.05), 0 12px 32px rgba(50,50,50,.09);
  padding: 30px 30px 24px;
}

/* Centred: with the tagline gone the mark is the only thing on this row, and
   left-aligning a lone logo above centred form fields reads as a mistake. */
.login-brand { margin-bottom: 26px; display: flex; justify-content: center; }
/* Width-constrained, height auto — see the note in style.css. */
.login-logo { width: 168px; max-width: 100%; height: auto; display: block; }
.login-logo-fallback {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 17px; letter-spacing: -.4px;
}

.login-title { font-size: 21px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 18px; text-align: center; }

.login-field { margin-bottom: 15px; }
.login-field label {
  display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px;
}
.login-field input {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.login-field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

.login-button {
  width: 100%; margin-top: 8px;
  padding: 11px 14px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font: inherit; font-size: 14px; font-weight: 650;
  cursor: pointer;
}
.login-button:hover { background: var(--accent-hover); }
.login-button:disabled { opacity: .6; cursor: default; }
.login-button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.login-alert {
  margin-bottom: 16px; padding: 10px 12px;
  border: 1px solid var(--danger); border-left-width: 3px;
  background: var(--danger-weak); border-radius: var(--radius-sm);
  color: var(--danger); font-size: 12.5px; line-height: 1.45;
}

.login-foot {
  margin: 20px 0 0; text-align: center;
  font-size: 11.5px; color: var(--text-faint);
  line-height: 1.5;
}
.login-foot-date { display: block; }
