:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --border: #e2e8f0;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --info-from: #0f766e;
  --info-to: #0f172a;
}

* {
  box-sizing: border-box;
}

body.signup-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #eef8fb, #f8fafc);
  color: var(--text);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.signup-shell {
  width: min(1100px, 100%);
  flex: 0 1 auto;
}

.signup-logo--side {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 0 10px;
  display: block;
}

.signup-info h1 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.signup-info .subtitle {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.4;
}

.signup-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  overflow: hidden;
}

.signup-info {
  background: linear-gradient(180deg, var(--info-from), var(--info-to));
  color: #fff;
  padding: 28px;
}

.signup-info h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.signup-info > p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  opacity: 0.92;
  line-height: 1.5;
}

.signup-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signup-benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.4;
}

.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.signup-form-wrap {
  padding: 28px;
}

.signup-form-wrap h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.alert-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.signup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.form-field {
  min-width: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.form-field label .req {
  color: var(--danger);
  font-weight: 700;
}

.form-field label .opt {
  font-weight: 500;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.form-field textarea {
  min-height: 74px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(8, 145, 178, 0.22);
  border-color: var(--accent);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
  background: #fffbfb;
}

.field-error {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.submit-btn {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--accent-hover);
}

.signup-footer {
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Success */
.signup-page--success {
  justify-content: center;
}

.success-card-wrap {
  width: min(520px, 100%);
}

.success-card {
  background: #fff;
  border: 1px solid var(--ok-border);
  border-radius: 22px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.success-card .ok-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.success-card h1 {
  margin: 0 0 8px;
  color: var(--ok);
  font-size: 1.35rem;
}

.success-card .lead {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.success-card .next-steps {
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.success-card .next-steps h2 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.success-card .next-steps ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.btn-home {
  display: inline-block;
  min-width: 180px;
  height: 44px;
  line-height: 44px;
  padding: 0 1.25rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}

.btn-home:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

@media (max-width: 850px) {
  body.signup-page {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 14px;
  }

  .signup-card {
    grid-template-columns: 1fr;
  }

  .signup-info,
  .signup-form-wrap {
    padding: 20px;
  }

  .signup-form-grid {
    grid-template-columns: 1fr;
  }

  .signup-logo {
    width: 76px;
    height: 76px;
  }
}

@media (max-height: 760px) {
  body.signup-page {
    padding: 12px;
    justify-content: flex-start;
    align-items: center;
  }

  .signup-header {
    margin-bottom: 8px;
  }

  .signup-logo {
    width: 72px;
    height: 72px;
  }

  .signup-info,
  .signup-form-wrap {
    padding: 20px;
  }

  .form-field textarea {
    min-height: 58px;
  }
}
