:root {
  --ink: #14323a;
  --muted: #4d6670;
  --paper: #f3fafc;
  --card: #ffffff;
  --line: #d5e8ee;
  --clay: #17a2b8;
  --clay-deep: #0e7c8f;
  --gold: #0078ef;
  --soft: #e7f6fb;
  --ink-deep: #0b3d4a;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.brandbar {
  background:
    radial-gradient(900px 220px at 50% 130%, rgba(0, 120, 239, 0.28), transparent 56%),
    linear-gradient(165deg, #0b3d4a 0%, #0e7c8f 55%, #17a2b8 100%);
  padding: 18px 16px 20px;
  text-align: center;
  border-top: 4px solid #7ad7ea;
}

.brandbar img {
  display: inline-block;
  max-width: min(720px, 94vw);
  max-height: 176px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.sheet {
  width: min(980px, calc(100% - 28px));
  margin: 28px auto 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--clay-deep);
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.sub {
  margin: 12px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--clay-deep);
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 14px 34px rgba(11, 61, 74, 0.08);
}

.card h2 {
  margin: 0;
  color: var(--clay-deep);
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 1.8rem;
}

.hint {
  margin: 6px 0 18px;
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.field { margin-bottom: 14px; }

.control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.control:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.25);
}

input[type="text"],
input[type="password"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.peek {
  border: 0;
  background: transparent;
  color: var(--clay-deep);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.note,
.miss {
  border-radius: 12px;
  background: var(--soft);
  color: var(--clay-deep);
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.note { margin: 2px 0 16px; }

.miss { margin: 0 0 16px; }

.miss a {
  color: var(--ink-deep);
  font-weight: 800;
}

button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}

button[type="submit"]:hover,
button[type="submit"]:focus { background: var(--clay-deep); }

button[type="submit"]:focus-visible,
.peek:focus-visible,
.foot a:focus-visible {
  outline: 3px solid #7ad7ea;
  outline-offset: 2px;
}

.foot {
  width: min(980px, calc(100% - 28px));
  margin: 22px auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.foot a {
  color: var(--clay-deep);
  font-weight: 700;
  text-decoration: none;
}

.foot a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
  .card { padding: 18px 16px 16px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
