/**
 * Signup funnel — stepped register / plan / verify
 * Brand: cream #FDF9F3, terracotta #C45A2C, sage #7A8C6E
 */

:root {
  --signup-cream: #fdf9f3;
  --signup-terracotta: #c45a2c;
  --signup-terracotta-hover: #ad4f27;
  --signup-sage: #7a8c6e;
  --signup-charcoal: #2d3436;
}

.bodyContainer:has(.signup-funnel) {
  background: var(--signup-cream) !important;
}

.signup-funnel {
  max-width: 960px;
  margin-inline: auto;
  padding: 0 0 2rem;
}

.signup-funnel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-top: 0.25rem;
}

.signup-funnel__login {
  font-size: 0.875rem;
  color: #636e72;
}

.signup-funnel__login a {
  color: var(--signup-terracotta);
  font-weight: 600;
  text-decoration: none;
}

.signup-funnel__login a:hover {
  text-decoration: underline;
}

/* Stepper */
.signup-stepper {
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.signup-stepper__track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.signup-stepper__line {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
  transform: translateY(-50%);
}

.signup-stepper__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.signup-stepper__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e5e7eb;
  color: #6b7280;
  box-shadow: 0 0 0 4px var(--signup-cream);
}

.signup-stepper__dot--active {
  background: var(--signup-sage);
  color: #fff;
}

.signup-stepper__dot--done {
  background: var(--signup-sage);
  color: #fff;
}

.signup-stepper__dot--plan-active {
  background: var(--signup-terracotta);
  color: #fff;
}

.signup-stepper__dot--done-plan {
  background: #fdeee6;
  color: var(--signup-terracotta);
}

.signup-stepper__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.signup-stepper__label--active {
  color: var(--signup-charcoal);
  font-weight: 700;
}

.signup-stepper__label--done {
  color: var(--signup-terracotta);
}

/* Card layout */
.signup-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0ebe3;
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(92, 64, 51, 0.08);
  overflow: hidden;
}

@media (min-width: 768px) {
  .signup-card {
    flex-direction: row;
  }
}

.signup-card__main {
  flex: 1;
  padding: 2rem;
}

@media (min-width: 768px) {
  .signup-card__main {
    padding: 2.5rem 3rem;
  }
}

.signup-card__aside {
  display: none;
  width: 340px;
  flex-shrink: 0;
  background: #faf8f5;
  border-left: 1px solid #f0ebe3;
}

@media (min-width: 768px) {
  .signup-card__aside {
    display: block;
  }
}

.signup-card__aside--wide {
  width: 320px;
}

.signup-card__aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 100%;
}

.signup-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--signup-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.signup-card__subtitle {
  font-size: 0.9rem;
  color: #636e72;
  margin-bottom: 1.75rem;
}

/* Plan step */
.signup-interval-toggle {
  display: inline-flex;
  padding: 0.25rem;
  background: #f3f4f6;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.signup-interval-toggle__btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.signup-interval-toggle__btn.is-active {
  background: #fff;
  color: var(--signup-charcoal);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.signup-plans {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
  .signup-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.signup-plan {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.signup-plan__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-plan__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 1rem 0.85rem;
  border: 2px solid #f0ebe3;
  border-radius: 1rem;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.signup-plan.is-selected .signup-plan__body,
.signup-plan__input:focus-visible + .signup-plan__body {
  border-color: var(--signup-terracotta);
  background: #fff;
  box-shadow: 0 10px 30px -10px rgba(196, 90, 44, 0.15);
}

.signup-plan--featured .signup-plan__body {
  border-color: #fdeee6;
}

.signup-plan__badge {
  position: absolute;
  top: -0.65rem;
  left: 0.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f9ebe6;
  color: var(--signup-terracotta);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-plan__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--signup-charcoal);
}

.signup-plan__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--signup-charcoal);
}

.signup-plan__price-suffix {
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
}

.signup-plan__alt-price {
  font-size: 0.625rem;
  color: #9ca3af;
  font-style: italic;
}

.signup-plan__tagline {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #636e72;
}

.signup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.signup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eef3ea;
  border: 1px solid rgba(122, 140, 110, 0.25);
  color: var(--signup-sage);
  font-size: 0.75rem;
  font-weight: 600;
}

.signup-badge__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--signup-sage);
}

/* Benefits panel (step 1 aside alternative content) */
.signup-benefits {
  padding: 2.5rem 2rem;
  position: relative;
  height: 100%;
}

.signup-benefits__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5c3e34;
  margin-bottom: 1.5rem;
}

.signup-benefits__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.signup-benefits__item {
  display: flex;
  gap: 0.85rem;
}

.signup-benefits__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(122, 140, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signup-sage);
  font-size: 0.75rem;
}

.signup-benefits__quote {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #f0ebe3;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-style: italic;
  color: #636e72;
  line-height: 1.5;
}

.signup-benefits__quote-author {
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.625rem;
  color: var(--signup-sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Verify step */
.signup-verify-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #e8f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signup-sage);
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.signup-code-input {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding: 0.75rem 1rem;
}

.signup-email-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 1.75rem;
}

.signup-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--signup-terracotta) !important;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.signup-btn-primary:hover {
  background: var(--signup-terracotta-hover) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.signup-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.signup-btn-secondary:hover {
  background: #f9fafb;
  color: #374151;
}

.signup-logout-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
}

.signup-logout-link:hover {
  color: #6b7280;
}

.signup-tip {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: #92400e;
  line-height: 1.5;
}

.signup-tip__icon {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.signup-secure-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.6875rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.signup-back-link {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
}

.signup-back-link:hover {
  color: #6b7280;
}

.signup-funnel .form-control-modern:focus {
  border-color: var(--signup-terracotta);
  box-shadow: 0 0 0 3px rgba(196, 90, 44, 0.15);
}

.signup-funnel .auth-pg-link-accent {
  color: var(--signup-terracotta);
}
