:root {
  color-scheme: dark;
  --bg: #090a0d;
  --panel: #111419;
  --panel-2: #171b22;
  --line: #2a303a;
  --text: #f1f3f5;
  --muted: #969eaa;
  --gold: #d7ad3a;
  --gold-2: #9f7b1f;
  --discord: #5865f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% 0%, rgba(215,173,58,.09), transparent 34rem),
    linear-gradient(180deg, #0b0d10, #07080a);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.seal {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-2);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow:
    inset 0 0 0 8px #0b0d10,
    inset 0 0 0 9px #4f421d,
    0 10px 40px rgba(0,0,0,.35);
}

.eyebrow {
  color: var(--gold);
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: .95;
  margin: 0;
  letter-spacing: -.04em;
}

.subtitle {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.card,
.profile-card {
  background: rgba(17,20,25,.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
}

.login-card {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.login-card h2,
.form h2 { margin: 0 0 7px; }

.login-card p,
.section-title p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.discord-btn,
.submit-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.discord-btn { background: var(--discord); }

.submit-btn {
  background: linear-gradient(135deg, var(--gold), #b38622);
  color: #171203;
}

.profile-card {
  margin-bottom: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-copy {
  display: flex;
  align-items: center;
  gap: 11px;
}

.profile-copy small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #55c875;
  box-shadow: 0 0 16px rgba(85,200,117,.7);
}

.link-btn {
  background: none;
  border: 0;
  color: #b6bdc8;
  cursor: pointer;
}

.form { padding: 30px; }

.form-intro {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: rgba(215,173,58,.055);
  border: 1px solid rgba(215,173,58,.2);
  border-radius: 14px;
}

.form-intro strong { color: var(--gold); }

.form-intro p {
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0 0;
}

.section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 4px 0 20px;
  padding-top: 10px;
}

.section-title:not(:first-child) {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.section-title span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  padding-top: 5px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: block;
  font-weight: 700;
  font-size: .94rem;
  margin: 0 0 20px;
}

.help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 400;
  font-size: .86rem;
  line-height: 1.55;
}

input,
textarea {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(215,173,58,.09);
}

.radio-field {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}

.radio-field legend {
  font-weight: 700;
  font-size: .94rem;
  margin-bottom: 9px;
}

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

.radio-card {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--text);
  transition: .15s ease;
}

.radio-card input:checked + span {
  border-color: var(--gold);
  background: rgba(215,173,58,.1);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215,173,58,.07);
}

.submit-row {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.submit-row p {
  color: var(--muted);
  font-size: .84rem;
  max-width: 600px;
  margin: 0;
  line-height: 1.5;
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 700;
}

.alert.success {
  background: rgba(56,161,105,.12);
  border: 1px solid rgba(56,161,105,.35);
}

.alert.error {
  background: rgba(210,70,70,.1);
  border: 1px solid rgba(210,70,70,.34);
}

footer {
  color: #626975;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .08em;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .shell { padding-top: 34px; }
  .hero { align-items: flex-start; }
  .seal {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
  .login-card,
  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }
  .grid.two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form { padding: 20px; }
}
