/* ============================================================
   EasePay — Signup page (2-step wizard)
   Same class names as before (signup-container, step-indicator,
   form-step, input-group, form-btn, etc.) so the existing wizard
   JS (nextStep/prevStep/validateStep1/2) needs no changes.
   ============================================================ */
*{ box-sizing: border-box; }
body{
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(160deg, var(--site-clr) 0%, var(--brand-900) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.signup-container{
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 0 0 26px 26px;
  padding: 0 22px 34px;
  box-shadow: 0 -14px 40px rgba(6, 15, 74, 0.18);
  margin: 0 auto;
}
@media (min-width: 500px){
  .signup-container{ border-radius: 26px; margin: 40px auto; box-shadow: var(--shadow-lg); }
}

.signup-container .logo{
  text-align: center;
  color: #fff;
  padding: 36px 10px 54px;
  margin: 0 -22px 0;
  position: relative;
  background: transparent;
}
/* fake the hero behind the logo using a pseudo-panel matching login page */
.signup-container{ position: relative; overflow: hidden; }
.signup-container .logo{
  background: linear-gradient(160deg, var(--site-clr) 0%, var(--brand-900) 100%);
  border-radius: 0 0 26px 26px;
}
@media (min-width: 500px){
  .signup-container .logo{ border-radius: 26px 26px 0 0; margin-top: -1px; }
}
.signup-container .logo img{
  width: 52px; height: 52px; border-radius: 14px;
  background: #fff; padding: 6px; object-fit: contain;
  box-shadow: var(--shadow-lg);
}
.signup-container .logo h1{
  font-size: 17px; font-weight: 800; margin: 12px 0 0; letter-spacing: 0.2px;
}

/* step indicator — floats up over the hero/card seam */
.step-indicator{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin: -34px 0 22px;
  position: relative;
  z-index: 2;
}
.step{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 140px;
  position: relative;
}
.step:first-child::after{
  content: "";
  position: absolute;
  top: 19px; left: 60%;
  width: 90%;
  height: 2px;
  background: var(--ink-100);
  z-index: -1;
}
.step.active:first-child::after{ background: var(--site-clr); }
.step-circle{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--ink-100);
  color: var(--ink-300);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.step.active .step-circle{
  border-color: var(--site-clr);
  color: var(--site-clr);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 92, 255, 0.14);
}
.step-label{ font-size: 11px; font-weight: 600; color: var(--ink-300); }
.step.active .step-label{ color: var(--site-clr); }

.form-step{ display: none; }
.form-step.active{ display: block; animation: epFadeIn .25s ease; }
@keyframes epFadeIn{ from{ opacity:0; transform: translateY(8px);} to{opacity:1; transform: translateY(0);} }

.form-header{ text-align: center; margin-bottom: 20px; }
.form-header h2{ font-size: 17px; font-weight: 800; color: var(--ink-900); margin: 0 0 4px; }
.form-header p{ font-size: 12.5px; color: var(--ink-500); margin: 0; }

.form-group{ margin-bottom: 15px; }
.form-group.half-width{ display: flex; gap: 12px; }
.form-group.half-width > div{ flex: 1; }
.form-group label{
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-700);
  margin-bottom: 6px;
}
.form-group label .required{ color: var(--error); }

.input-group{
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--r-md);
  padding: 0 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.input-group:focus-within{
  border-color: var(--brand-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 92, 255, 0.10);
}
.input-group i{ color: var(--ink-300); font-size: 14px; width: 18px; text-align: center; }
.input-group input{
  border: none; outline: none; background: transparent;
  flex: 1; padding: 13px 10px; font-size: 14px; color: var(--ink-900); font-family: inherit;
}
.password-toggle{
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-300); padding: 6px; display: flex; align-items: center;
}
.password-toggle:hover{ color: var(--ink-500); }

.error-message{ font-size: 11.5px; color: var(--error); margin-top: 5px; min-height: 14px; font-weight: 500; }

.password-strength{ height: 4px; border-radius: 999px; background: var(--ink-100); margin-top: 8px; overflow: hidden; position: relative; }
.password-strength::after{
  content: attr(data-label);
  position: absolute; left: 0; top: 8px; font-size: 10.5px; font-weight: 600;
}
.password-strength.weak{ background: linear-gradient(90deg, var(--error) 33%, var(--ink-100) 33%); }
.password-strength.medium{ background: linear-gradient(90deg, var(--warning) 66%, var(--ink-100) 66%); }
.password-strength.strong{ background: var(--success); }

.referral-box{
  background: var(--ink-50);
  border: 1px dashed var(--ink-100);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 15px;
}
.referral-box > label{ font-size: 12.5px; font-weight: 700; color: var(--ink-700); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.referral-box > label i{ color: var(--site-clr); }
.referral-note{ font-size: 11px; color: var(--ink-300); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

.terms{ margin: 6px 0 20px; }
.terms label{ display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-500); font-weight: 500; }
.terms input[type="checkbox"]{ margin-top: 2px; width: 16px; height: 16px; accent-color: var(--site-clr); flex-shrink: 0; }
.terms a{ color: var(--site-clr); font-weight: 700; text-decoration: none; }

.form-buttons{ display: flex; gap: 10px; }
.form-btn{
  flex: 1;
  border: none; outline: none; cursor: pointer;
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s ease, box-shadow .15s ease, opacity .15s ease;
}
.form-btn:active{ transform: translateY(1px) scale(0.99); }
.form-btn.next-btn{
  color: #fff;
  background: linear-gradient(135deg, var(--site-clr) 0%, var(--brand-accent) 100%);
  box-shadow: var(--shadow-brand);
}
.form-btn.next-btn:disabled{ opacity: 0.65; cursor: not-allowed; }
.form-btn.prev-btn{
  background: var(--ink-50);
  color: var(--ink-700);
  border: 1.5px solid var(--ink-100);
  flex: 0 0 110px;
}

.login-link{ text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink-500); }
.login-link a{ color: var(--site-clr); font-weight: 700; text-decoration: none; }

.notification{
  position: fixed; top: 18px; left: 50%;
  transform: translateX(-50%) translateY(-140%);
  z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-900); color: #fff;
  padding: 12px 18px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-width: 92vw;
}
.notification.show{ transform: translateX(-50%) translateY(0); }
.notification.success{ background: var(--success); }
.notification.error{ background: var(--error); }
