.s2-signup-page {
  min-height: calc(100vh - var(--s2-header-h));
  padding: 48px 0 80px;
  background: var(--s2-bg);
}

.s2-signup-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.s2-signup-card {
  background: var(--s2-surface);
  border: 1px solid var(--s2-border);
  border-radius: var(--s2-radius-lg);
  padding: 40px 36px;
  box-shadow: var(--s2-shadow-lg);
}

.s2-signup-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--s2-text);
  text-align: center;
}

.s2-signup-sub {
  text-align: center;
  color: var(--s2-text-3);
  font-size: 0.95rem;
  margin: 0 0 32px;
}

.s2-form-group {
  margin-bottom: 20px;
}

.s2-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--s2-text);
  margin-bottom: 8px;
}

.s2-form-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--s2-text);
  background: var(--s2-bg);
  border: 1.5px solid var(--s2-border-2);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.s2-form-input:focus {
  outline: none;
  border-color: var(--s2-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.s2-phone-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.s2-country-select {
  flex: 0 0 118px;
  width: 118px;
  padding: 13px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--s2-text);
  background: var(--s2-bg);
  border: 1.5px solid var(--s2-border-2);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.s2-country-select:focus {
  outline: none;
  border-color: var(--s2-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.s2-phone-input {
  flex: 1;
  min-width: 0;
}

.s2-form-input:read-only {
  opacity: 0.75;
  cursor: not-allowed;
  background: var(--s2-bg-3);
}

.s2-form-input.is-invalid {
  border-color: #ef4444;
}

.s2-pw-wrap {
  position: relative;
}

.s2-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--s2-text-3);
  cursor: pointer;
  padding: 4px;
}

.s2-captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.s2-captcha-q {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  background: var(--s2-bg-3);
  border: 1px solid var(--s2-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--s2-text-2);
}

.s2-captcha-refresh {
  background: none;
  border: 1px solid var(--s2-border-2);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--s2-text-3);
  transition: color 0.2s, border-color 0.2s;
}

.s2-captcha-refresh:hover {
  color: var(--s2-orange);
  border-color: var(--s2-orange);
}

.s2-form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.s2-form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--s2-orange);
  flex-shrink: 0;
}

.s2-form-check label {
  font-size: 0.88rem;
  color: var(--s2-text-2);
  line-height: 1.55;
}

.s2-form-check a {
  color: var(--s2-orange);
  font-weight: 600;
}

.s2-form-check a:hover {
  text-decoration: underline;
}

.s2-btn-submit {
  width: 100%;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--s2-orange), var(--s2-orange-hover));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.s2-btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
}

.s2-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.s2-form-alert {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.s2-form-alert.show {
  display: block;
}

.s2-form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

.s2-form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

.s2-signup-success {
  text-align: center;
  padding: 12px 0 8px;
}

.s2-signup-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 2.2rem;
}

.s2-signup-success-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--s2-text);
  margin: 0 0 12px;
}

.s2-signup-success-message {
  font-size: 0.95rem;
  color: var(--s2-text-2);
  line-height: 1.6;
  margin: 0 0 10px;
}

.s2-signup-success-redirect {
  font-size: 0.82rem;
  color: var(--s2-text-3);
  margin: 0 0 24px;
}

.s2-signup-success-btn {
  display: inline-flex;
  width: auto;
  min-width: 220px;
  justify-content: center;
  text-decoration: none;
}

.s2-captcha-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--s2-text-3);
  line-height: 1.5;
}

.s2-signup-panel {
  display: none;
}

.s2-signup-panel.active {
  display: block;
}

.s2-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--s2-text-3);
  margin-bottom: 20px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.s2-back-link:hover {
  color: var(--s2-orange);
}

.s2-signup-login {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--s2-text-3);
}

.s2-signup-login a {
  color: var(--s2-orange);
  font-weight: 600;
}

.s2-otp-intro {
  font-size: 0.95rem;
  color: var(--s2-text-2);
  line-height: 1.6;
  margin: 0 0 8px;
  text-align: center;
}

.s2-otp-note {
  font-size: 0.82rem;
  color: var(--s2-text-3);
  text-align: center;
  margin: 0 0 24px;
}

.s2-otp-input {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.s2-otp-resend {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--s2-orange);
  background: none;
  border: none;
  cursor: pointer;
}

.s2-otp-resend:hover {
  text-decoration: underline;
}

.s2-otp-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

@media (max-width: 575px) {
  .s2-signup-card {
    padding: 28px 22px;
  }

  .s2-country-select {
    flex: 0 0 108px;
    width: 108px;
    font-size: 0.82rem;
  }
}
