@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --blue-core:   #0042C5;
  --blue-deep:   #02359D;
  --grey-90:     #2B333E;
  --grey-60:     #727B89;
  --grey-45:     #969FAB;
  --grey-30:     #BBC3CE;
  --grey-15:     #D7DDE6;
  --grey-05:     #EFF4F9;
  --black:       #070F1A;

  --ink:         var(--black);
  --fg-on-ink:   var(--black);
  --fg-on-ink-2: var(--grey-60);

  --brand:       var(--blue-core);
  --brand-deep:  var(--blue-deep);
  --brand-soft:  var(--grey-05);

  --card-bg:     #ffffff;
  --card-border: var(--grey-15);
  --card-radius: 8px;
  --card-shadow: none;

  --field-border: var(--grey-30);
  --field-radius: 8px;
  --muted:        var(--grey-60);

  --container: 480px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: var(--grey-05);
  min-height: 100vh;
  color: var(--black);
}

a { color: inherit; text-decoration: none; }

/* ── Page centring ── */
.page-wrap {
  min-height: calc(100vh - 60px - 44px);
  display: grid;
  place-items: start center;
  padding: 32px 16px 48px;
}

.page-col { width: min(var(--container), 100%); }

/* ── Brand row (above card) ── */
.page-brand {
  text-align: center;
  margin-bottom: 22px;
}

.page-brand__row {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 21px;
  color: var(--black);
}

.page-brand__wordmark { height: 26px; margin: 0 auto; display: block; }

.page-brand__badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}

.page-brand__sub {
  margin: 8px 0 0;
  color: var(--grey-60);
  font-size: 14px;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 26px 26px 22px;
  box-shadow: var(--card-shadow);
}

/* ── Form fields ── */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-90);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  font: inherit;
  font-size: 15px;
  color: var(--black);
  background: #fff;
  transition: border-color 140ms, box-shadow 140ms;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23969FAB' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field select { cursor: pointer; padding-right: 36px; }

.field input:hover,
.field select:hover  { border-color: var(--grey-45); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 66, 197, 0.15);
}

.field input::placeholder { color: var(--grey-45); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  border: none;
  font: 600 15px/1 inherit;
  cursor: pointer;
  transition: background 140ms, transform 80ms;
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  width: 100%;
}

.btn-primary:hover { background: var(--brand-deep); }

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--field-border);
  width: 100%;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: var(--grey-05);
  border-color: var(--brand);
  color: var(--brand);
}

/* ── Error / misc ── */
.error-msg {
  color: #b42318;
  background: #fdeceb;
  border: 1px solid #f3b9b3;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  margin-bottom: 16px;
}

h1, h2, h3 { margin: 0 0 .2em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.4rem; }
p  { margin: 0 0 .75rem; }
.muted { color: var(--muted); font-size: 13px; }
