/**
 * Sign up page — Abutic Dot auth shell (matches abutic-dot-login.css + body.ab-dot-signup).
 */
html.ab-dot-home-html:has(body.ab-dot-signup) {
  background: #fff !important;
  background-color: #fff !important;
}

body.ab-dot-home.ab-dot-signup {
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff !important;
}

body.ab-dot-home.ab-dot-signup main.ab-dot-main.ab-dot-signup-main::before,
body.ab-dot-home.ab-dot-signup main.ab-dot-main.ab-dot-signup-main::after {
  display: none !important;
}

body.ab-dot-home.ab-dot-signup main.ab-dot-main.ab-dot-signup-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0;
  padding: 2.75rem 1rem 2.25rem;
  margin: 0 !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.ab-dot-home.ab-dot-signup main.ab-dot-main.ab-dot-signup-main {
    padding: 3rem 1.25rem 3rem;
  }
}

@media (min-width: 1024px) {
  body.ab-dot-home.ab-dot-signup main.ab-dot-main.ab-dot-signup-main {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 2.5rem 1.5rem 2.5rem !important;
  }
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--ab-dot-card-strong, #ffffff);
  border: 1px solid var(--ab-dot-card-border, rgba(15, 23, 42, 0.06));
  border-radius: 1.25rem;
  box-shadow: var(
    --ab-dot-shadow-lift,
    0 2px 8px rgba(15, 23, 42, 0.045),
    0 14px 36px rgba(30, 58, 138, 0.06)
  );
  color: #1d1d1f;
}

@media (min-width: 768px) {
  body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell {
    max-width: 500px;
    padding: 2.5rem 2.25rem;
    border-radius: 1.5rem;
  }
}

@media (min-width: 1024px) {
  body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell {
    max-width: 560px;
    padding: 2.75rem 2.5rem;
  }
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell * {
  box-sizing: border-box;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .brand img {
  height: 64px;
  width: 64px;
  max-width: 100%;
  display: inline-block;
  object-fit: contain;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .trial-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #166534;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .subtitle {
  text-align: center;
  color: #6e6e73;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .alert {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .form-group {
  margin-bottom: 1.15rem;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .name-row {
    grid-template-columns: 1fr;
  }
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #424245;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell input[type="email"],
body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell input[type="password"],
body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: #1d1d1f;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .password-group input {
  padding-right: 2.75rem;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell input:focus {
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.14);
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .password-group {
  position: relative;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e6e73;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .pw-eye:hover {
  color: #1d1d1f;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .pw-eye.active {
  color: #0066cc;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .strength {
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.25s ease, background 0.25s ease;
  border-radius: 4px;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .strength-text {
  font-size: 0.75rem;
  margin-top: 0.35rem;
  color: #86868b;
  font-weight: 600;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.5rem;
  transform: scale(0.92);
  transform-origin: top center;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell button[type="submit"] {
  width: 100%;
  height: 48px;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, #1a7fff 0%, #0066cc 55%, #005cbf 100%);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 80, 180, 0.2), 0 6px 18px rgba(0, 102, 204, 0.2);
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow: 0 2px 6px rgba(0, 80, 180, 0.25), 0 10px 26px rgba(0, 102, 204, 0.25);
  transform: translateY(-1px);
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #86868b;
  margin: 1.5rem 0;
  font-size: 0.8125rem;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .divider::before,
body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .divider::before {
  margin-right: 12px;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .divider::after {
  margin-left: 12px;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .social-btn:hover {
  background: var(--ab-dot-surface, #f7f9fc);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .signup-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6e6e73;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .signup-link a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .signup-link a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .back {
  text-align: center;
  margin-top: 1rem;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .back a {
  font-size: 0.8125rem;
  color: #86868b;
  text-decoration: none;
}

body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .back a:hover {
  color: #1d1d1f;
}

@media (max-width: 480px) {
  body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell {
    padding: 1.75rem 1.25rem;
  }

  body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell h1 {
    font-size: 1.375rem;
  }

  body.ab-dot-home.ab-dot-signup .ab-dot-signup-shell .brand img {
    height: 52px;
    width: 52px;
  }
}

body.ab-dot-home.ab-dot-signup footer {
  background: var(--ab-dot-canvas, #fafbfc);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Two-step signup (email → password) ── */
.ab-signup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.ab-signup-progress__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ab-signup-progress__dot.is-active {
  background: #0066cc;
}

.ab-signup-progress__dot.is-done {
  background: rgba(0, 102, 204, 0.35);
}

.ab-signup-form {
  display: grid;
  gap: 0;
}

.ab-signup-step--email .form-group {
  margin-bottom: 0.85rem;
}

body.ab-dot-home.ab-dot-signup .ab-signup-form button.ab-signup-continue {
  width: 100%;
  height: 48px;
  margin-top: 0.15rem;
  background: linear-gradient(180deg, #1a7fff 0%, #0066cc 55%, #005cbf 100%) !important;
  color: #fff !important;
  border: 0;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 80, 180, 0.2), 0 6px 18px rgba(0, 102, 204, 0.2);
}

body.ab-dot-home.ab-dot-signup .ab-signup-form button.ab-signup-continue:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.ab-dot-home.ab-dot-signup .ab-signup-form button.ab-signup-continue:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ab-signup-step-error {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b91c1c;
}

.ab-signup-step-error[hidden] {
  display: none !important;
}

.ab-signup-step--password {
  display: grid;
  gap: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translate3d(0, -8px, 0);
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ab-signup-form.is-step-2 .ab-signup-step--email .ab-signup-continue,
.ab-signup-form.is-step-2 .ab-signup-step--email .form-group {
  display: none;
}

.ab-signup-form.is-step-2 .ab-signup-step--password {
  max-height: 28rem;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  margin-top: 0.25rem;
}

.ab-signup-email-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 0.875rem;
  color: #334155;
}

.ab-signup-email-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-signup-email-change {
  appearance: none;
  border: 0;
  background: transparent !important;
  color: #0066cc !important;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  flex-shrink: 0;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.15rem 0.35rem !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.ab-signup-email-change:hover {
  text-decoration: underline;
  color: #0052a3 !important;
}

.ab-signup-form.is-step-2 .ab-signup-step--email .ab-signup-step-error {
  display: none;
}

body.ab-dot-home.ab-dot-signup .ab-signup-step--password button[type="submit"] {
  margin-top: 0.35rem;
}

.ab-signup-social-block[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ab-signup-step--password {
    transition: none;
    transform: none;
  }
}
