:root {
  --navy: #08233f;
  --gold: #f7b500;
  --paper: #fffaf0;
  --surface: #ffffff;
  --line: #dce5ee;
  --text: #102033;
  --muted: #667386;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 20px 55px rgba(8, 35, 63, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff, #ffffff 42%, #fff8e8);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.register-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 44px);
  color: #fff;
  background: var(--navy);
}

.register-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.register-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.register-brand strong,
.register-brand small {
  display: block;
}

.register-brand small {
  color: rgba(255, 255, 255, 0.72);
}

.quiet-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
}

.quiet-link {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.quiet-link.dark {
  border-color: rgba(8, 35, 63, 0.18);
  color: var(--navy);
}

.primary-link {
  color: var(--navy);
  background: var(--gold);
}

.register-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.register-heading {
  margin-bottom: 24px;
}

.register-heading h1,
.success-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1;
}

.register-heading > p:last-child,
.success-panel > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 9px;
  color: #946200;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.register-form,
.success-panel {
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.register-form {
  display: grid;
  gap: 22px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  width: 100%;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

label small {
  color: var(--muted);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(247, 181, 0, 0.16);
}

.check-grid,
.legal-checks {
  display: grid;
  gap: 10px;
}

.check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-grid label,
.legal-checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 8px;
  padding: 12px;
  background: #fff8e3;
}

.check-grid input,
.legal-checks input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 3px;
}

.legal-checks a {
  color: #795100;
}

.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), #ffcc36);
  box-shadow: 0 12px 28px rgba(247, 181, 0, 0.22);
  cursor: pointer;
  font-weight: 900;
}

.form-errors {
  margin-bottom: 18px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--danger);
  background: #fff5f3;
}

.form-errors ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.success-panel {
  max-width: 720px;
  margin: 8vh auto 0;
  text-align: center;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-weight: 900;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 680px) {
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .register-brand small {
    display: none;
  }

  .success-actions {
    flex-direction: column;
  }
}
