@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --ts-primary: #00a67e;
  --ts-primary-dark: #0b8f6f;
  --ts-ink: #0f172a;
  --ts-text: #1e293b;
  --ts-muted: #64748b;
  --ts-border: #dbe7e3;
  --ts-border-strong: #bfd5cd;
  --ts-surface: rgba(255, 255, 255, 0.92);
  --ts-surface-soft: rgba(248, 252, 250, 0.88);
  --ts-shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.14);
  --ts-shadow-md: 0 20px 40px rgba(15, 23, 42, 0.08);
  --ts-ring: 0 0 0 4px rgba(0, 166, 126, 0.12);
}

html.signup-overhaul-active,
body.signup-overhaul-active {
  min-height: 100%;
}

body.signup-overhaul-active {
  background:
    radial-gradient(circle at 50% 0%, #e3fdf5 0%, #ffffff 68%),
    linear-gradient(180deg, #fbfdfc 0%, #f7fbfa 100%) !important;
  color: var(--ts-text) !important;
  font-family: 'Inter', 'Work Sans', system-ui, sans-serif !important;
}

body.signup-overhaul-active::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  opacity: 0.45;
}

body.signup-overhaul-active .auth-wrapper,
body.signup-overhaul-active .am-body-content-wrapper {
  position: relative;
  z-index: 1;
}

body.signup-overhaul-active .auth-content,
body.signup-overhaul-active .auth-content.signup {
  width: min(1180px, 100%) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 28px 18px 72px !important;
}

body.signup-overhaul-active .auth-content > a {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}

body.signup-overhaul-active .auth-content > .card,
body.signup-overhaul-active .ts-signup-host {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

body.signup-overhaul-active .ts-signup-host {
  max-width: 1180px;
  margin: 24px auto 72px;
  padding: 0 20px;
  text-align: left !important;
}

.ts-signup-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px;
  align-items: start;
  text-align: left;
}

.ts-signup-story {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(232, 251, 244, 0.92) 58%, rgba(205, 245, 231, 0.96) 100%);
  color: var(--ts-ink);
  border: 1px solid rgba(190, 232, 218, 0.9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 24px;
}

.ts-signup-story::before,
.ts-signup-story::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.ts-signup-story::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -80px;
  background: rgba(255, 255, 255, 0.5);
}

.ts-signup-story::after {
  width: 220px;
  height: 220px;
  bottom: -110px;
  left: -70px;
  background: rgba(0, 166, 126, 0.12);
}

.ts-story-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ts-story-kicker,
.ts-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-story-kicker {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ts-primary-dark);
  border: 1px solid rgba(190, 232, 218, 0.9);
}

.ts-panel-kicker {
  background: rgba(0, 166, 126, 0.1);
  color: var(--ts-primary-dark);
  border: 1px solid rgba(0, 166, 126, 0.12);
}

.ts-story-copy h1,
.ts-signup-panel-head h2 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.04em;
}

.ts-story-copy h1 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.04;
}

.ts-signup-panel-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  color: var(--ts-ink);
}

.ts-story-copy p,
.ts-signup-panel-head p {
  margin: 0;
  line-height: 1.7;
}

.ts-story-copy p {
  max-width: 32rem;
  font-size: 0.95rem;
  color: var(--ts-muted);
}

.ts-signup-panel-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ts-signup-panel-head p {
  color: var(--ts-muted);
  font-size: 0.98rem;
}

.ts-story-pill-row,
.ts-story-metrics,
.ts-support-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ts-story-pill,
.ts-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.ts-story-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(190, 232, 218, 0.82);
  color: var(--ts-text);
  font-size: 0.85rem;
}

.ts-story-pill i {
  color: var(--ts-primary);
}

.ts-story-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ts-story-summary-item {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(190, 232, 218, 0.82);
}

.ts-story-summary-item strong,
.ts-story-summary-item span {
  display: block;
}

.ts-story-summary-item strong {
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: var(--ts-ink);
}

.ts-story-summary-item span {
  color: var(--ts-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.ts-story-footnote {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(190, 232, 218, 0.75);
}

.ts-story-footnote i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 166, 126, 0.12);
  color: var(--ts-primary-dark);
}

.ts-story-footnote span {
  color: var(--ts-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.ts-signup-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  background: var(--ts-surface);
  border: 1px solid rgba(219, 231, 227, 0.92);
  box-shadow: var(--ts-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ts-signup-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 140px;
  background: linear-gradient(180deg, rgba(0, 166, 126, 0.08), transparent);
  pointer-events: none;
}

.ts-signup-card > * {
  position: relative;
  z-index: 1;
}

body.signup-overhaul-active .am-info.am-login-text,
body.signup-overhaul-active .alert.alert-info.mb-4 {
  display: none !important;
}

body.signup-overhaul-active .am-signup,
body.signup-overhaul-active .am-form,
body.signup-overhaul-active .am-signup-form {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  max-width: none !important;
}

body.signup-overhaul-active .am-signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

body.signup-overhaul-active .ts-signup-card .alert,
body.signup-overhaul-active .ts-signup-card .errors,
body.signup-overhaul-active .ts-signup-card .am-errors {
  margin-bottom: 18px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(239, 68, 68, 0.18) !important;
  background: rgba(254, 242, 242, 0.92) !important;
  color: #991b1b !important;
  text-align: left !important;
  box-shadow: none !important;
}

body.signup-overhaul-active .am-google-button-wrapper {
  margin: 0 !important;
}

body.signup-overhaul-active .am-google-button {
  display: block !important;
}

body.signup-overhaul-active .am-google-button a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 54px !important;
  padding: 10px 14px !important;
  background: #fff !important;
  border: 1px solid var(--ts-border) !important;
  border-radius: 15px !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06) !important;
}

body.signup-overhaul-active .am-google-button img {
  max-width: min(100%, 210px);
  height: auto;
}

.ts-form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ts-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ts-form-divider::before,
.ts-form-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

body.signup-overhaul-active .am-signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.signup-overhaul-active .am-signup-form.ts-signup-grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
}

body.signup-overhaul-active .am-signup-form.ts-signup-grid-form .ts-span-2 {
  grid-column: 1 / -1;
}

body.signup-overhaul-active .am-signup-form.ts-signup-grid-form .ts-half {
  grid-column: span 1;
}

body.signup-overhaul-active .am-signup-form .am-row,
body.signup-overhaul-active .am-form .am-row {
  margin: 0 !important;
  display: block !important;
}

body.signup-overhaul-active .am-signup-form .am-element-title,
body.signup-overhaul-active .am-form .am-element-title {
  display: none !important;
}

body.signup-overhaul-active .am-signup-form .am-element,
body.signup-overhaul-active .am-form .am-element {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.ts-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ts-text);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ts-field-note {
  margin-top: 5px;
  color: var(--ts-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.ts-field-note--group {
  margin-top: 10px;
}

.ts-field-control {
  position: relative;
}

body.signup-overhaul-active .ts-field-control input[type='text'],
body.signup-overhaul-active .ts-field-control input[type='email'],
body.signup-overhaul-active .ts-field-control input[type='password'],
body.signup-overhaul-active .ts-field-control select {
  width: 100% !important;
  max-width: none !important;
  min-height: 48px !important;
  padding: 12px 15px !important;
  border-radius: 15px !important;
  border: 1.5px solid var(--ts-border) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%) !important;
  color: var(--ts-ink) !important;
  font-size: 0.92rem !important;
  font-family: 'Inter', 'Work Sans', system-ui, sans-serif !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

body.signup-overhaul-active .ts-field-control input::placeholder {
  color: #94a3b8;
}

body.signup-overhaul-active .ts-field-control input:focus,
body.signup-overhaul-active .ts-field-control select:focus {
  border-color: var(--ts-primary) !important;
  box-shadow: var(--ts-ring) !important;
  outline: none !important;
  transform: translateY(-1px);
}

.ts-inline-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ts-inline-field {
  min-width: 0;
}

body.signup-overhaul-active .am-pass-indicator {
  height: 5px !important;
  border-radius: 999px !important;
  margin-top: 7px !important;
}

body.signup-overhaul-active .am-error {
  display: block;
  margin-top: 5px !important;
  color: #b91c1c !important;
  font-size: 0.72rem !important;
  line-height: 1.35;
}

body.signup-overhaul-active fieldset#fieldset-agreement {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body.signup-overhaul-active fieldset#fieldset-agreement > legend {
  display: none !important;
}

body.signup-overhaul-active [id^='row-_i_agree'],
body.signup-overhaul-active #row-agreement {
  border: 1px solid var(--ts-border) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #f7fbfa 0%, #eff8f4 100%) !important;
  padding: 14px !important;
}

body.signup-overhaul-active [id^='row-_i_agree'] .am-element,
body.signup-overhaul-active #row-agreement .am-element {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

body.signup-overhaul-active [id^='row-_i_agree'] input[type='checkbox'],
body.signup-overhaul-active #row-agreement input[type='checkbox'] {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  margin: 3px 0 0 !important;
  accent-color: var(--ts-primary);
}

.ts-check-copy {
  display: block;
  margin: 0;
  color: var(--ts-text);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ts-check-copy a {
  color: var(--ts-primary-dark) !important;
  font-weight: 700;
  text-decoration: none;
}

.ts-check-copy a:hover {
  text-decoration: underline;
}

.ts-check-note {
  margin-top: 4px;
  color: var(--ts-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

body.signup-overhaul-active #row-grp-captcha {
  padding-top: 2px;
}

body.signup-overhaul-active #row-grp-captcha .am-element.group {
  display: flex !important;
  justify-content: center !important;
}

.ts-captcha-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  text-align: center;
}

.ts-captcha-head strong {
  font-size: 0.84rem;
  color: var(--ts-text);
}

.ts-captcha-head span {
  color: var(--ts-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

body.signup-overhaul-active #row-buttons {
  padding-top: 4px;
}

body.signup-overhaul-active #row-buttons .am-element.group {
  width: 100%;
}

body.signup-overhaul-active .am-cta-signup,
body.signup-overhaul-active .am-cta-signup-next,
body.signup-overhaul-active #row-buttons input[type='submit'] {
  width: 100% !important;
  min-height: 50px !important;
  border: none !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--ts-primary) 0%, #00c494 100%) !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 14px 24px rgba(0, 166, 126, 0.2) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

body.signup-overhaul-active .am-cta-signup:hover,
body.signup-overhaul-active .am-cta-signup-next:hover,
body.signup-overhaul-active #row-buttons input[type='submit']:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 24px 36px rgba(0, 166, 126, 0.28) !important;
  filter: saturate(1.05);
}

.ts-signup-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ts-support-pills {
  gap: 10px;
}

.ts-support-pill {
  background: rgba(0, 166, 126, 0.07);
  border: 1px solid rgba(0, 166, 126, 0.1);
  color: var(--ts-primary-dark);
  font-size: 0.77rem;
  padding: 8px 12px;
}

.ts-login-inline {
  color: var(--ts-muted);
  font-size: 0.82rem;
}

.ts-login-inline a,
.ts-panel-actions a {
  color: var(--ts-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.ts-login-inline a:hover,
.ts-panel-actions a:hover {
  text-decoration: underline;
}

.ts-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--ts-muted);
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .ts-signup-shell {
    grid-template-columns: 1fr;
  }

  .ts-story-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ts-signup-story {
    position: static;
  }
}

@media (max-width: 768px) {
  body.signup-overhaul-active .auth-content,
  body.signup-overhaul-active .auth-content.signup,
  body.signup-overhaul-active .ts-signup-host {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .ts-signup-story,
  .ts-signup-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .ts-story-copy h1 {
    font-size: 1.9rem;
  }

  .ts-story-summary {
    grid-template-columns: 1fr;
  }

  body.signup-overhaul-active .am-signup-form.ts-signup-grid-form {
    grid-template-columns: 1fr;
  }

  body.signup-overhaul-active .am-signup-form.ts-signup-grid-form .ts-half,
  body.signup-overhaul-active .am-signup-form.ts-signup-grid-form .ts-span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ts-inline-grid {
    grid-template-columns: 1fr;
  }

  .ts-form-divider {
    gap: 10px;
    font-size: 0.74rem;
  }

  .ts-story-pill-row,
  .ts-support-pills {
    gap: 10px;
  }
}
