:root {
  --ink: #132126;
  --ink-soft: #536269;
  --paper: #f4f5f0;
  --paper-deep: #e5e8df;
  --jade: #0b735c;
  --jade-dark: #075443;
  --lacquer: #9c2f27;
  --gold: #d8a93c;
  --line: #c9cec5;
  --danger: #9b2c25;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: 0;
}

button, input { font: inherit; letter-spacing: 0; }

.registration-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(500px, 0.92fr);
}

.world-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: #17312d url("/assets/hero.webp") center / cover no-repeat;
}

.world-panel__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 20, 0.25), rgba(7, 20, 20, 0.04) 55%, rgba(7, 20, 20, 0.46)),
    linear-gradient(0deg, rgba(4, 15, 15, 0.82), transparent 52%);
}

.brand-lockup {
  position: absolute;
  left: clamp(34px, 6vw, 92px);
  bottom: clamp(92px, 14vh, 150px);
  z-index: 1;
  max-width: 520px;
}

.brand-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 700 12px/1.4 Cambria, Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-lockup h1 {
  margin: 0;
  font: 700 clamp(58px, 7vw, 112px)/0.82 Cambria, Georgia, serif;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.brand-note {
  margin: 26px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.server-status {
  position: absolute;
  z-index: 1;
  left: clamp(34px, 6vw, 92px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.server-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #70d897;
  box-shadow: 0 0 0 5px rgba(112, 216, 151, 0.16);
}

.form-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px clamp(34px, 6vw, 84px);
  background:
    linear-gradient(rgba(19, 33, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 33, 38, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 30px 30px;
}

.form-panel__inner { width: min(100%, 560px); }

.form-header { margin-bottom: 30px; }

.form-header h2,
.result h2 {
  margin: 0;
  font: 700 clamp(34px, 4vw, 52px)/1 Cambria, Georgia, serif;
}

.form-header > p:last-child,
.muted {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.alert {
  margin-bottom: 22px;
  padding: 13px 15px;
  border-left: 4px solid var(--danger);
  background: #f2e4e1;
  color: #68241f;
  line-height: 1.45;
}

form { display: grid; gap: 19px; }

.field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field input,
.account-input {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.field > input {
  padding: 0 14px;
  outline: none;
}

.account-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.account-input input {
  min-width: 0;
  min-height: 47px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  outline: none;
}

.account-input strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.field input:focus,
.account-input:focus-within {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(11, 115, 92, 0.13);
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.consent input { width: 17px; height: 17px; accent-color: var(--jade); }

.primary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--jade);
  box-shadow: 0 8px 20px rgba(7, 84, 67, 0.2);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-action:hover { background: var(--jade-dark); }
.primary-action:focus-visible { outline: 3px solid rgba(216, 169, 60, 0.6); outline-offset: 3px; }

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.result { display: grid; justify-items: start; }

.result__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
  font-size: 28px;
}

.result__account {
  width: 100%;
  margin: 28px 0 4px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.72);
  font: 700 17px/1.4 Consolas, monospace;
  overflow-wrap: anywhere;
}

.result .primary-action { margin-top: 22px; }

footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .registration-shell { grid-template-columns: 1fr; }
  .world-panel { min-height: 38vh; }
  .brand-lockup { bottom: 64px; }
  .brand-lockup h1 { font-size: clamp(48px, 13vw, 82px); }
  .brand-note { display: none; }
  .server-status { bottom: 22px; }
  .form-panel { min-height: 62vh; padding-top: 42px; padding-bottom: 42px; }
}

@media (max-width: 560px) {
  .world-panel { min-height: 34vh; }
  .brand-lockup { left: 24px; bottom: 58px; }
  .server-status { left: 24px; }
  .form-panel { padding: 36px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .account-input { grid-template-columns: minmax(0, 1fr); }
  .account-input strong { min-height: 38px; border-left: 0; border-top: 1px solid var(--line); }
}
