:root {
  --reg-ground: #0F1117;
  --reg-panel: #151922;
  --reg-ink: #F4F1EA;
  --reg-soft: #AEB6C4;
  --reg-mute: #747E8D;
  --reg-line: rgba(244, 241, 234, 0.13);
  --reg-line-soft: rgba(244, 241, 234, 0.07);
  --reg-amber: #F59E0B;
  --reg-amber-light: #FFB52E;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--reg-ground);
}

body.reg-body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background-color: var(--reg-ground);
  background-image:
    radial-gradient(52% 48% at 78% 6%, rgba(107, 138, 253, 0.13), transparent 62%),
    radial-gradient(42% 38% at 3% 92%, rgba(245, 158, 11, 0.07), transparent 65%),
    linear-gradient(rgba(244, 241, 234, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 88px 88px, 88px 88px;
  color: var(--reg-ink);
  font-family: var(--font-body, 'Inter', sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.reg-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.reg-body a {
  color: inherit;
}

body.reg-body :focus-visible {
  outline: 2px solid var(--reg-amber);
  outline-offset: 3px;
}

.reg-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--reg-amber);
  color: #17120A;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.reg-skip:focus {
  transform: none;
}

.reg-page {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  width: min(1180px, calc(100% - 64px));
  min-height: 100svh;
  margin-inline: auto;
  padding: 52px 0;
}

.reg-intro {
  max-width: 580px;
}

.reg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(44px, 7vw, 94px);
}

body.reg-body .reg-brand img {
  width: auto;
  height: 32px;
}

.reg-back {
  color: var(--reg-mute);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.reg-back:hover {
  color: var(--reg-ink);
}

.reg-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--reg-amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.reg-eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--reg-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.reg-intro h1 {
  margin: 0 0 22px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.reg-intro-copy > p:not(.reg-eyebrow):not(.reg-login) {
  max-width: 44ch;
  margin: 0 0 26px;
  color: var(--reg-soft);
  font-size: 16px;
  line-height: 1.68;
}

.reg-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reg-points li {
  position: relative;
  padding-left: 24px;
  color: var(--reg-soft);
  font-size: 14px;
  line-height: 1.5;
}

.reg-points li::before {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 0;
  color: var(--reg-amber);
  font-size: 14px;
  font-weight: 800;
}

.reg-login {
  margin: 30px 0 0;
  color: var(--reg-mute);
  font-size: 13px;
}

.reg-login a {
  color: var(--reg-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.3);
  padding-bottom: 1px;
}

.reg-login a:hover {
  color: var(--reg-amber);
  border-bottom-color: rgba(245, 158, 11, 0.5);
}

.reg-card {
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--reg-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #171B25 0%, #12151D 100%);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.reg-card-head h2,
.reg-success h2 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.reg-card-head > p:last-child {
  margin: 0 0 24px;
  color: var(--reg-mute);
  font-size: 13px;
}

.reg-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.08);
  color: #FCA5A5;
  font-size: 13px;
  line-height: 1.5;
}

.reg-form {
  display: grid;
  gap: 16px;
}

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

.reg-field label {
  color: var(--reg-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reg-field label span {
  color: var(--reg-amber);
}

.reg-field input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--reg-line);
  border-radius: 8px;
  background: #0D1017;
  color: var(--reg-ink);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.3;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.reg-field input::placeholder {
  color: #5C6573;
}

.reg-field input:hover {
  border-color: rgba(244, 241, 234, 0.24);
}

.reg-field input:focus {
  border-color: rgba(245, 158, 11, 0.65);
  background: #0B0E14;
  outline: none;
}

.reg-field input:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.5);
  outline-offset: 1px;
}

.reg-field input:-webkit-autofill,
.reg-field input:-webkit-autofill:hover,
.reg-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0D1017 inset !important;
  -webkit-text-fill-color: var(--reg-ink) !important;
  caret-color: var(--reg-ink);
}

.reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 13px 18px;
  border: 1px solid var(--reg-amber);
  border-radius: 8px;
  background: var(--reg-amber);
  color: #17120A;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.reg-btn:hover {
  background: var(--reg-amber-light);
  border-color: var(--reg-amber-light);
  transform: translateY(-1px);
}

.reg-btn:active {
  transform: translateY(0);
}

.reg-btn span {
  transition: transform 0.2s ease;
}

.reg-btn:hover span {
  transform: translateX(3px);
}

.reg-note {
  margin: 20px 0 0;
  color: var(--reg-mute);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.reg-success {
  text-align: center;
}

.reg-success .reg-eyebrow {
  justify-content: center;
}

.reg-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  color: #86EFAC;
  font-size: 22px;
}

.reg-success > p:not(.reg-eyebrow) {
  max-width: 36ch;
  margin: 0 auto 24px;
  color: var(--reg-soft);
  font-size: 14px;
  line-height: 1.65;
}

.reg-btn-ghost {
  width: auto;
  border-color: var(--reg-line);
  background: transparent;
  color: var(--reg-ink);
}

.reg-btn-ghost:hover {
  border-color: rgba(244, 241, 234, 0.28);
  background: rgba(244, 241, 234, 0.05);
}

@media (max-width: 900px) {
  .reg-page {
    grid-template-columns: 1fr;
    gap: 36px;
    width: min(620px, calc(100% - 40px));
    padding: 36px 0 48px;
  }

  .reg-intro {
    max-width: none;
  }

  .reg-top {
    margin-bottom: 38px;
  }

  .reg-intro h1 {
    font-size: clamp(2.35rem, 8vw, 3.1rem);
  }

  .reg-intro-copy > p:not(.reg-eyebrow):not(.reg-login) {
    max-width: 52ch;
  }
}

@media (max-width: 480px) {
  body.reg-body .reg-brand img {
    height: 28px;
  }

  .reg-page {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  .reg-top {
    align-items: flex-start;
  }

  .reg-back {
    padding-top: 6px;
    font-size: 11px;
  }

  .reg-card {
    padding: 22px 18px;
    border-radius: 14px;
  }
}

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

.reg-consent {
  margin: 10px 0 0;
  color: var(--reg-mute);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.reg-consent a {
  color: var(--reg-amber-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reg-consent a:hover {
  color: var(--reg-amber);
}