* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(53, 103, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(107, 56, 255, 0.22), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(39, 199, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #040914 0%, #07101b 46%, #050a13 100%);
  color: #e8eefb;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.signup-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.signup-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  border: 1px solid rgba(118, 140, 191, 0.18);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(7, 15, 29, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.42);
}

.signup-copy,
.signup-form-panel {
  padding: 42px;
}

.signup-copy {
  display: grid;
  gap: 32px;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(9, 19, 38, 0.82), rgba(7, 14, 28, 0.9)),
    linear-gradient(145deg, rgba(66, 92, 255, 0.16), rgba(106, 65, 255, 0.06));
}

.signup-form-panel {
  display: grid;
  gap: 24px;
  align-content: center;
  background: linear-gradient(180deg, rgba(7, 14, 27, 0.96), rgba(6, 12, 22, 0.98));
  border-left: 1px solid rgba(118, 140, 191, 0.12);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(78, 108, 255, 0.12);
  border: 1px solid rgba(127, 149, 255, 0.24);
}

.brand-mark span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5b8cff 0%, #7b4dff 52%, #5ee6ff 100%);
  box-shadow: 0 0 22px rgba(113, 88, 255, 0.45);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: #93a4ca;
  font-size: 0.9rem;
}

.copy-stack,
.form-header {
  display: grid;
  gap: 14px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #8ea8ff;
}

.copy-stack h1,
.form-header h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.copy-stack h1 {
  font-size: clamp(2.5rem, 3.4vw, 3.7rem);
}

.copy-stack p,
.form-header p,
.feature-panel p,
.support-copy {
  margin: 0;
  color: #a8b7d8;
  line-height: 1.65;
}

.feature-panel {
  display: grid;
  gap: 14px;
}

.feature-panel article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(126, 145, 191, 0.16);
}

.feature-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.signup-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d7e3fb;
}

.field em {
  color: #8194bd;
  font-style: normal;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(119, 136, 182, 0.24);
  background: rgba(10, 18, 33, 0.94);
  padding: 0 16px;
  color: #f4f8ff;
  outline: none;
}

.field input::placeholder {
  color: #6d7fa7;
}

.field input:focus,
.field select:focus {
  border-color: rgba(92, 123, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(77, 110, 255, 0.14);
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'] {
  border-color: rgba(255, 108, 122, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 83, 109, 0.12);
}

.goal-note,
.form-message,
.support-copy {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.goal-note {
  background: rgba(58, 99, 255, 0.12);
  border: 1px solid rgba(93, 121, 255, 0.22);
  color: #dbe5ff;
}

.form-message {
  display: none;
  border: 1px solid transparent;
}

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

.form-message.info {
  background: rgba(58, 99, 255, 0.12);
  border-color: rgba(93, 121, 255, 0.22);
  color: #dbe5ff;
}

.form-message.success {
  background: rgba(27, 148, 89, 0.12);
  border-color: rgba(36, 181, 107, 0.22);
  color: #c8f7dc;
}

.form-message.error {
  background: rgba(190, 48, 75, 0.12);
  border-color: rgba(255, 99, 126, 0.24);
  color: #ffd4de;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #3873ff 0%, #7241ff 100%);
  box-shadow: 0 20px 38px rgba(69, 95, 255, 0.34);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-footer {
  margin: 0;
  color: #9aaacc;
  text-align: center;
}

.inline-link {
  color: #8ea8ff;
  font-weight: 600;
}

.inline-link:hover {
  color: #b8c8ff;
}

@media (max-width: 980px) {
  .signup-card {
    grid-template-columns: 1fr;
  }

  .signup-form-panel {
    border-left: 0;
    border-top: 1px solid rgba(118, 140, 191, 0.12);
  }
}

@media (max-width: 720px) {
  .signup-shell {
    padding: 18px;
  }

  .signup-copy,
  .signup-form-panel {
    padding: 24px;
  }

  .field-grid.two-up {
    grid-template-columns: 1fr;
  }

  .copy-stack h1 {
    font-size: 2.2rem;
  }
}