.auth-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 42px) 18px 72px;
  background:
    radial-gradient(circle at 8% 14%, rgba(99, 184, 47, .15), transparent 28rem),
    radial-gradient(circle at 92% 20%, rgba(249, 115, 22, .12), transparent 25rem),
    var(--bg);
}

.auth-container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.login-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 36px 40px 40px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(47, 92, 25, .13);
}

.auth-brand {
  display: block;
  width: auto;
  height: 68px;
  margin: 0 auto 14px;
}

.auth-heading {
  margin-bottom: 26px;
  text-align: center;
}

.auth-heading h1 {
  margin: 0 0 7px;
  color: var(--text);
  font: 400 clamp(1.55rem, 4vw, 2rem)/1.15 'Paytone One', system-ui;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 13px;
  font-size: .9rem;
  line-height: 1.45;
}

.auth-alert.error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.auth-alert.success {
  color: #32731a;
  background: #f0fce8;
  border-color: #b9e99d;
}

.auth-field {
  margin-bottom: 17px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 13px;
  outline: none;
  font: 600 1rem 'Nunito', system-ui;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-field input:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(99, 184, 47, .13);
}

.auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 20px rgba(249, 115, 22, .27);
  cursor: pointer;
  font: 400 1rem 'Paytone One', system-ui;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}

.auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(249, 115, 22, .36);
}

.auth-primary:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.auth-secondary-link {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.auth-secondary-link a {
  color: var(--green-d);
  font-weight: 900;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: 30px;
  align-items: stretch;
}

.signup-pitch,
.signup-card {
  border: 1.5px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 55px rgba(47, 92, 25, .11);
}

.signup-pitch {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(145deg, #326f1a, #63b82f 58%, #8bd653);
}

.signup-pitch::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 310px;
  height: 310px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  content: '';
}

.signup-kicker {
  display: inline-flex;
  margin-bottom: 19px;
  padding: 7px 13px;
  color: #285f13;
  background: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.signup-pitch h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 0 16px;
  font: 400 clamp(2rem, 5vw, 3.6rem)/1.06 'Paytone One', system-ui;
}

.signup-pitch h1 span {
  color: #fff0a7;
}

.signup-lead {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 2vw, 1.13rem);
  line-height: 1.65;
}

.signup-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}

.signup-benefits li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.signup-benefits i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  border-radius: 12px;
  font-style: normal;
  font-size: 1.18rem;
}

.signup-benefits strong {
  display: block;
  margin-bottom: 2px;
  font-size: .98rem;
}

.signup-benefits small {
  color: rgba(255, 255, 255, .78);
  line-height: 1.35;
}

.signup-card {
  padding: clamp(28px, 4vw, 42px);
  background: #fff;
}

.signup-card-header {
  margin-bottom: 23px;
}

.signup-card-header h2 {
  margin: 0 0 6px;
  color: var(--text);
  font: 400 1.55rem 'Paytone One', system-ui;
}

.signup-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.signup-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.signup-reassurance {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}

.signup-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 4px 0 19px;
  padding: 13px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.45;
}

.signup-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

.signup-consent:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(99, 184, 47, .11);
}

.signup-consent a {
  color: var(--green-d);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-login {
  margin-top: 22px;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

.signup-login button {
  padding: 0;
  color: var(--green-d);
  background: none;
  border: 0;
  cursor: pointer;
  font: 900 inherit;
  text-decoration: underline;
}

.signup-success {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 55px);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 55px rgba(47, 92, 25, .13);
  text-align: center;
}

.signup-success-icon {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  place-items: center;
  background: var(--green-bg);
  border-radius: 50%;
  font-size: 2.2rem;
}

.signup-success h1 {
  margin: 0 0 10px;
  font: 400 clamp(1.65rem, 5vw, 2.25rem) 'Paytone One', system-ui;
}

.signup-success p {
  color: var(--muted);
  line-height: 1.6;
}

.signup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
  counter-reset: signup-step;
}

.signup-steps li {
  padding: 14px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: .82rem;
}

.signup-steps strong {
  display: block;
  color: var(--text);
  font-size: .88rem;
}

@media (max-width: 900px) {
  .signup-layout {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .signup-pitch {
    padding: 38px 32px;
  }

  .signup-card {
    order: -1;
  }
}

@media (max-width: 600px) {
  .auth-page {
    padding: calc(var(--nav-h) + 20px) 12px 44px;
  }

  .login-card,
  .signup-card,
  .signup-pitch,
  .signup-success {
    padding: 26px 20px 28px;
    border-radius: 18px;
  }

  .auth-brand {
    height: 56px;
  }

  .signup-pitch h1 {
    font-size: 2rem;
  }

  .signup-benefits li {
    padding: 10px 11px;
  }

  .signup-reassurance {
    flex-direction: column;
    gap: 4px;
  }

  .signup-steps {
    grid-template-columns: 1fr;
  }
}
