:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  --ink: #f4ecd8;
  --muted: #b8ad94;
  --gold: #d7a94c;
  --gold-soft: #f0cf7c;
  --blood: #8e342f;
  --panel: rgba(17, 17, 15, 0.94);
  --field: rgba(7, 8, 7, 0.72);
  --line: rgba(215, 169, 76, 0.26);
  --error: #ff9a8f;
  --success: #b8daa3;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(100, 72, 26, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 86%, rgba(82, 24, 23, 0.22), transparent 32rem),
    linear-gradient(145deg, #080a08 0%, #11110e 54%, #080706 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(28rem, 1.08fr);
  width: min(1120px, calc(100% - 40px));
  min-height: 680px;
  margin: clamp(28px, 6vh, 72px) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
  background: var(--panel);
}

.world-panel,
.form-panel {
  padding: clamp(36px, 6vw, 72px);
}

.world-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 13, 10, 0.16), rgba(10, 8, 6, 0.9)),
    radial-gradient(circle at 50% 24%, rgba(215, 169, 76, 0.18), transparent 14rem),
    #10130f;
}

.world-panel::after {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(215, 169, 76, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 2rem rgba(215, 169, 76, 0.025),
    0 0 0 5rem rgba(215, 169, 76, 0.018);
}

.sigil {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 36px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 2rem;
  transform: rotate(45deg);
}

.sigil::first-letter {
  transform: rotate(-45deg);
}

.eyebrow,
.step-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.world-copy {
  max-width: 34rem;
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.account-notes {
  display: grid;
  gap: 20px;
  margin: 48px 0 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

.account-notes div {
  padding-left: 18px;
  border-left: 2px solid var(--blood);
}

.account-notes dt {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.account-notes dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(15, 15, 13, 0.92);
}

.form-heading {
  margin-bottom: 28px;
}

.form-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.form-heading > p:last-child {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

.field-group {
  display: grid;
  gap: 7px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

label {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid rgba(244, 236, 216, 0.2);
  border-radius: 2px;
  outline: none;
  color: var(--ink);
  background: var(--field);
  font: 1rem/1.4 "Segoe UI", Arial, sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:hover {
  border-color: rgba(244, 236, 216, 0.38);
}

input:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 169, 76, 0.13);
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-hint,
.field-error {
  min-height: 18px;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-hint {
  color: #8f8776;
}

.field-error {
  color: var(--error);
}

.text-button {
  padding: 4px 0;
  border: 0;
  color: var(--gold-soft);
  background: transparent;
  font: 0.8rem "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.text-button:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.submit-button {
  min-height: 52px;
  margin-top: 4px;
  border: 1px solid #e0b85f;
  color: #171109;
  background: linear-gradient(135deg, #e0bd68, #b9822e);
  font: 700 0.93rem/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.submit-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  filter: grayscale(0.6);
  transform: none;
}

.status-message {
  display: none;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid transparent;
  font: 0.9rem/1.5 "Segoe UI", Arial, sans-serif;
}

.status-message.is-visible {
  display: block;
}

.status-message.is-error {
  border-color: rgba(255, 154, 143, 0.4);
  color: var(--error);
  background: rgba(142, 52, 47, 0.12);
}

.status-message.is-success {
  border-color: rgba(184, 218, 163, 0.4);
  color: var(--success);
  background: rgba(74, 105, 54, 0.14);
}

@media (max-width: 820px) {
  .account-shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 620px);
    margin: 12px auto;
  }

  .world-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-notes {
    display: none;
  }

  h1 {
    max-width: 15ch;
    font-size: clamp(2.3rem, 12vw, 4rem);
  }
}

@media (max-width: 480px) {
  .account-shell {
    width: 100%;
    margin: 0;
    border-width: 0;
  }

  .world-panel,
  .form-panel {
    padding: 32px 22px;
  }

  .world-panel {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

