:root {
  --primary: #467691;
  --primary-dark: #375e74;
  --accent: #42adaa;
  --accent-light: #dcedb4;
  --text: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --bg: #f4f7f9;
  --error: #e30613;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  font: 16px/1.5 "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg);
}
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.topbar { background: var(--primary); color: #fff; border-bottom: 4px solid var(--accent); }
.topbar .wrap { height: 64px; display: flex; align-items: center; }
.brand { font-weight: 600; font-size: 18px; letter-spacing: .2px; }
main { flex: 1; display: flex; align-items: center; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.card {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 6px 24px rgba(33, 37, 41, .08); overflow: hidden;
}
.card-head { background: var(--accent-light); padding: 22px 28px 16px; border-bottom: 1px solid #cfe1a1; }
h1 { margin: 0; font-size: 22px; font-weight: 600; color: var(--primary); }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
form { padding: 22px 28px 8px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid #ced4da; border-radius: 4px; transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(70, 118, 145, .2); }
.msg { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--error); }
button {
  width: 100%; margin: 8px 0 14px; padding: 11px 16px; font: inherit; font-weight: 600; color: #fff;
  background: var(--primary); border: 0; border-radius: 4px; cursor: pointer;
}
button:hover:not(:disabled) { background: var(--primary-dark); }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .7; cursor: progress; }
.help { margin: 0; padding: 0 28px 22px; font-size: 13px; color: var(--muted); }
.foot { background: #343a40; color: #ced4da; font-size: 13px; }
.foot .wrap { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 480px) {
  .card-head, form { padding-left: 18px; padding-right: 18px; }
  .help { padding: 0 18px 18px; }
  .brand { font-size: 15px; }
}
