:root {
  color: #172238;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; }

.auth-body {
  background: #f1f6fb;
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.auth-card {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgb(32 71 112 / 12%);
  max-width: 440px;
  padding: 36px;
  width: 100%;
}

.auth-brand {
  align-items: center;
  background: #0a3d85;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  letter-spacing: -.04em;
  text-decoration: none;
  width: 46px;
}

.auth-card h1 {
  font-size: 30px;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 28px 0 8px;
}

.auth-lead,
.auth-note,
.auth-secondary {
  color: #64748b;
  line-height: 1.55;
}

.auth-lead { margin: 0 0 24px; }
.auth-note { margin: -12px 0 24px; }
.auth-secondary { margin: 22px 0 0; text-align: center; }

.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { font-size: 14px; font-weight: 700; }

.auth-field input:not([type="checkbox"]) {
  background: #fff;
  border: 1px solid #cbd8e5;
  border-radius: 10px;
  color: #172238;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.auth-field input:focus {
  border-color: #248cf4;
  box-shadow: 0 0 0 3px rgb(36 140 244 / 14%);
  outline: 0;
}

.auth-checkbox { align-items: center; display: flex; font-size: 14px; gap: 8px; }

.auth-primary {
  background: #248cf4;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 46px;
  padding: 11px 18px;
}

.auth-button-link { align-items: center; display: flex; justify-content: center; text-decoration: none; }
.auth-primary:hover { background: #1179df; }

.auth-links {
  display: grid;
  font-size: 14px;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}

.auth-card a { color: #176fc7; }
.auth-primary.auth-button-link { color: #fff; }

.errorlist {
  color: #b42318;
  font-size: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-messages {
  background: #edf8f1;
  border: 1px solid #b9e3c7;
  border-radius: 10px;
  color: #17613b;
  margin-top: 20px;
  padding: 10px 12px;
}

.auth-messages p { margin: 0; }

@media (max-width: 520px) {
  .auth-shell { padding: 20px 14px; }
  .auth-card { border-radius: 14px; padding: 26px 22px; }
  .auth-card h1 { font-size: 27px; }
}
