:root {
  --ink: #0f1020;
  --ink-2: #181a2e;
  --border-dark: #3a3f58;
  --line: #e4e6f0;
  --input-line: #d5d8e6;
  --soft: #f4f5fa;
  --text: #0f1020;
  --text-2: #3a3f58;
  --muted: #5b6078;
  --faint-dark: #8d92ad;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --danger: #c81e3a;
  --danger-soft: #fdeef1;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Unbounded, Inter, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--ghost { color: #fff; border-color: var(--border-dark); background: transparent; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--accent { min-height: 52px; padding: 0 24px; background: var(--accent); color: #fff; font-size: 16px; }
.btn--accent:hover { background: var(--accent-hover); }

/* Nav */
.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.brand:hover { color: #fff; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
}

/* Card */
.auth {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.card__head { display: flex; flex-direction: column; gap: 12px; }
.card__head p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.card__foot a { font-weight: 600; }

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.pill__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__link { font-size: 13px; text-decoration: none; }
label { font-size: 14px; font-weight: 600; }
input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--input-line);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.error {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}
.error[hidden] { display: none; }

/* Footer */
.footer { padding: 24px; text-align: center; font-size: 14px; color: var(--faint-dark); }
.footer__brand { font-family: var(--font-display); font-weight: 700; color: #fff; }

@media (max-width: 480px) {
  .card { padding: 28px 22px; }
  .btn--accent { width: 100%; }
}
