/* Colour/type tokens taken from wayfindertech.co.uk's design system, so this
   portal matches the brand rather than guessing at it. The real "Static" /
   "Wayfinder Static Logo" webfonts aren't included here (they weren't ours
   to copy) — swap them in later by adding @font-face rules and files under
   public/fonts/ if you get the font files from the design team. */
:root {
  --wf-cream: #fbfbf8;
  --wf-teal-900: #12383f;
  --wf-teal-800: #1d444c;
  --wf-teal-700: #25535d;
  --wf-teal-200: #c2dde1;
  --wf-teal-100: #e0eff1;
  --wf-orchid-400: #d86ff2;
  --wf-orchid-200: #eec5f8;
  --wf-orchid-50: #fbf2fe;
  --wf-ink-body: #2a474d;
  --wf-ink-muted: #5c7176;
  --wf-cream-300: #ebebdf;
  --wf-cream-400: #dcdccd;
  --wf-danger: #c2455a;
  --wf-danger-bg: #f9e7ea;
  --wf-success: #1f8a5b;
  --wf-success-bg: #e6f4ec;

  --font-sans: "Static", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-logo: "Wayfinder Static Logo", var(--font-sans);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wf-cream);
  font-family: var(--font-sans);
  color: var(--wf-ink-body);
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(18, 56, 63, 0.1), 0 4px 8px rgba(18, 56, 63, 0.05);
  padding: 32px;
}

.wf-logo {
  display: inline-grid;
  justify-items: center;
  line-height: 0.9;
  width: 100%;
  margin-bottom: 20px;
}

.wf-logo__word {
  font-family: var(--font-logo);
  color: var(--wf-teal-900);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wf-logo__word .accent {
  color: var(--wf-orchid-400);
}

.wf-logo__tech {
  font-family: var(--font-logo);
  color: var(--wf-teal-900);
  font-weight: 700;
  margin-top: 2px;
  font-size: 15px;
  letter-spacing: 0.13em;
  text-align: center;
  text-indent: 0.13em;
}

h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: var(--wf-teal-900);
}

.subtitle {
  margin: 0 0 24px;
  color: var(--wf-ink-muted);
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="date"] {
  padding: 10px 12px;
  border: 1px solid var(--wf-cream-400);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--wf-ink-body);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus {
  outline: none;
  border-color: var(--wf-orchid-400);
  box-shadow: 0 0 0 3px var(--wf-orchid-200);
}

label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--wf-ink-muted);
}

label.checkbox input {
  margin-top: 3px;
  accent-color: var(--wf-orchid-400);
}

a {
  color: var(--wf-teal-700);
}

a:hover {
  color: var(--wf-orchid-500, #c451e0);
}

button {
  margin-top: 24px;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: var(--wf-teal-900);
  color: var(--wf-cream);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease-out;
}

button:hover {
  background: var(--wf-teal-800);
}

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

.message {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.message.error {
  background: var(--wf-danger-bg);
  color: var(--wf-danger);
}

.message.success {
  background: var(--wf-success-bg);
  color: var(--wf-success);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 56, 63, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 28px;
  max-width: 420px;
}

.modal-content h2 {
  color: var(--wf-teal-900);
  margin-top: 0;
}

.modal-content button {
  width: 100%;
}

[hidden] {
  display: none !important;
}

.powered-by {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--wf-ink-muted);
}
