:root {
  color-scheme: dark;
  --bg: #07080d;
  --panel: rgba(18, 22, 31, 0.78);
  --panel-line: rgba(255, 255, 255, 0.15);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --gold: #f7c948;
  --red: #ff4d61;
  --green: #3ee083;
  --ink: #111827;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 77, 97, 0.34), transparent 28rem),
    radial-gradient(circle at 82% 24%, rgba(247, 201, 72, 0.25), transparent 24rem),
    linear-gradient(145deg, #07080d 0%, #14151e 48%, #090a11 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.stage {
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(7, 8, 13, 0.28);
  background-size: 44px 44px;
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(247, 201, 72, 0.14), transparent 38%, rgba(62, 224, 131, 0.1));
  pointer-events: none;
}

.ambient {
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
  animation: float 9s ease-in-out infinite;
  opacity: 0.45;
}

.ambient-one {
  left: 7%;
  bottom: 12%;
  background: rgba(255, 77, 97, 0.08);
}

.ambient-two {
  right: 9%;
  top: 11%;
  background: rgba(247, 201, 72, 0.08);
  animation-delay: -3s;
}

.reel {
  position: absolute;
  width: clamp(170px, 19vw, 260px);
  opacity: 0.85;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
}

.reel-left {
  left: clamp(16px, 5vw, 70px);
  top: clamp(70px, 14vh, 150px);
}

.reel-right {
  right: clamp(12px, 5vw, 70px);
  bottom: clamp(60px, 11vh, 120px);
}

.brand {
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(247, 201, 72, 0.36);
}

.panel,
.account {
  width: min(430px, calc(100vw - 48px));
  position: relative;
  z-index: 2;
  padding: 28px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.headline {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1;
}

h2 {
  font-size: 2rem;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tab,
.secondary {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.tab.active {
  color: var(--ink);
  border-color: rgba(247, 201, 72, 0.8);
  background: var(--gold);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.17);
}

.primary {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(247, 201, 72, 0.24);
}

.primary:disabled,
.secondary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.status.error {
  color: #ff9aa7;
}

.status.success {
  color: #91f2b9;
}

.account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.secondary {
  padding: 0 18px;
}

.hidden {
  display: none !important;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -18px;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

  .stage {
    min-height: calc(100vh - 28px);
  }

  .brand {
    top: 18px;
    left: 18px;
  }

  .panel,
  .account {
    width: min(390px, calc(100vw - 36px));
    padding: 22px;
  }

  .reel {
    opacity: 0.28;
  }
}
