@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --aubergine: #221A34;
  --cloud: #EFEFF3;
  --white: #FFFFFF;
  --iris-deep: #4E4790;
  --iris-light: #A9A3E0;
  --sun: #FAC142;
  --muted: #5A5470;
  --error: #A8282E;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--aubergine);
  color: var(--aubergine);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 28px;
  padding: 36px 32px;
}

.mark { margin: 0 0 20px; }
.mark span {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: url('/favicon.svg') center / cover;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead { margin: 10px 0 24px; color: var(--muted); }

.error {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #FBE9EA;
  color: var(--error);
  font-weight: 600;
}

form { display: grid; gap: 16px; }

label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }

input {
  font: inherit;
  font-weight: 400;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid #8A85A0;
  border-radius: 999px;
  background: var(--white);
  color: var(--aubergine);
}

button {
  font: inherit;
  font-weight: 600;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--aubergine);
  cursor: pointer;
}

:is(a, button, input):focus-visible {
  outline: 3px solid var(--aubergine);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--sun);
}

.tools { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.tools a {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--cloud);
  color: var(--aubergine);
  text-decoration: none;
}
.tools a:hover { background: #E2E1EA; }
.tools strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.tools span { color: var(--muted); font-size: 15px; }

.quiet { color: var(--iris-deep); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

button.secondary {
  width: 100%;
  background: transparent;
  border: 2px solid var(--aubergine);
}
