/* ==========================================================================
   Shared auth design system — signup / login / forgot / reset
   Adapted from the MyTestCart signup mockups. Loaded LAST so it wins over
   quiz.css/bootstrap for the auth pages. Scoped by markup classes (.auth-*),
   so it does not leak into the rest of the site.
   ========================================================================== */

:root{
  --blue:#5393CF;
  --blue-dark:#4582BD;
  --blue-soft:#EEF7FD;
  --text:#1E293B;
  --muted:#64748B;
  --border:#E2E8F0;
  --navy:#172A5E;
  --white:#FFFFFF;
}

/* auth.css is linked only on the auth pages, so styling body here is safe. */
.auth-page,.auth-page *{box-sizing:border-box}
body{
  font-family:"Plus Jakarta Sans",sans-serif;
  background:#F4F6F9;
  color:var(--text);
  margin:0;
  min-height:100vh;
}

.auth-page{
  min-height:100vh;
  display:grid;
  grid-template-columns:46% 54%;
  margin:0;
}

/* ---- left column: the form ---- */
.auth-left{
  position:relative;
  overflow:hidden;
  background:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:42px 64px;
}
.auth-left:before{
  content:"";
  position:absolute;
  width:420px;height:420px;border-radius:50%;
  background:rgba(83,147,207,.05);
  top:-190px;left:-190px;
}
.auth-left:after{
  content:"";
  position:absolute;
  width:360px;height:360px;border-radius:50%;
  background:rgba(83,147,207,.035);
  bottom:-180px;right:-160px;
}
.auth-content{
  width:100%;
  max-width:470px;
  position:relative;
  z-index:2;
}

.brand{display:flex;align-items:center;margin-bottom:30px}
.brand-logo{
  display:block;
  width:190px;
  height:auto;
  max-height:48px;
  object-fit:contain;
  object-position:left center;
}

/* ---- step progress ---- */
.steps{display:flex;gap:8px;margin-bottom:24px}
.step{height:4px;flex:1;border-radius:20px;background:#E5E7EB;transition:background .25s ease}
.step.active{background:var(--blue)}

/* ---- heading ---- */
.heading{margin-bottom:23px}
.heading h1{
  font-size:29px;line-height:1.2;font-weight:800;
  letter-spacing:-.8px;color:var(--navy);margin-bottom:8px;
}
.heading p{font-size:13px;line-height:1.6;color:var(--muted);max-width:410px}

/* ---- form fields ---- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.form-group{margin-bottom:17px}
.form-group.full{grid-column:1/-1}
.form-label{
  display:block;font-size:12px;font-weight:700;
  color:#243B6B;margin-bottom:7px;
}
.input,.select{
  width:100%;height:48px;
  border:1px solid var(--border);border-radius:12px;
  background:#fff;padding:0 14px;outline:none;
  font:500 13px "Plus Jakarta Sans",sans-serif;color:var(--text);
  transition:.2s ease;
}
.select{appearance:none;padding-right:38px;cursor:pointer}
.select-wrap{position:relative}
.select-wrap:after{
  content:"";position:absolute;right:14px;top:50%;
  width:7px;height:7px;
  border-right:1.5px solid #758396;border-bottom:1.5px solid #758396;
  transform:translateY(-65%) rotate(45deg);pointer-events:none;
}
.input::placeholder{color:#94A3B8}
.input:focus,.select:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(83,147,207,.12);
}
.input[type="file"]{padding:11px 14px;height:auto;font-size:12px}

/* country-code + mobile inline */
.mobile-row{display:flex;gap:10px;align-items:stretch}
.mobile-row .country-code{width:150px;flex-shrink:0}
.mobile-row .country-code .select{padding-left:12px}
.mobile-row .mobile-input{flex:1}

/* password */
.password-wrap{position:relative}
.password-input{padding-right:52px}
.password-toggle{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  border:none;background:none;color:#718096;cursor:pointer;
  font:600 11px "Plus Jakarta Sans",sans-serif;
}
.helper{margin-top:6px;font-size:10.5px;color:#94A3B8}

/* password strength (reuses bootstrap .progress markup) */
.pw-strength{margin-top:10px}
.pw-strength .progress{height:5px;border-radius:5px;background:#EEF2F7}
.pw-strength-text{font-size:11px;font-weight:700}
.pw-reqs{margin-top:8px;font-size:11px;line-height:1.9;color:#64748B}
.pw-reqs i{width:14px}

/* checkbox / terms */
.checkbox-row{display:flex;align-items:flex-start;gap:9px;margin:4px 0 20px}
.checkbox-row input{
  width:16px;height:16px;margin-top:1px;
  accent-color:var(--blue);cursor:pointer;flex-shrink:0;
}
.checkbox-row label{font-size:11px;line-height:1.5;color:#64748B;cursor:pointer;margin:0}
.checkbox-row a{color:var(--blue-dark);font-weight:700;text-decoration:none}
.checkbox-row a:hover{text-decoration:underline}

/* ---- primary button ---- */
.primary-btn{
  width:100%;height:51px;border:none;border-radius:13px;
  background:linear-gradient(90deg,var(--blue),var(--blue-dark));
  color:#fff;font:700 13.5px "Plus Jakarta Sans",sans-serif;
  cursor:pointer;transition:.2s ease;
}
.primary-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(83,147,207,.22)}
.primary-btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}

/* ---- links / footer ---- */
.back-link{
  display:block;text-align:center;margin-top:18px;
  font-size:12px;color:var(--muted);text-decoration:none;font-weight:600;
}
.back-link span{color:var(--blue-dark)}
.back-link:hover span{text-decoration:underline}
.auth-alt{text-align:center;margin-top:16px;font-size:12.5px;color:var(--muted)}
.auth-alt a{color:var(--blue-dark);font-weight:700;text-decoration:none}
.auth-alt a:hover{text-decoration:underline}
.footer{margin-top:24px;text-align:center;font-size:10.5px;color:#94A3B8}

/* row that carries a link on each side (change email / resend) */
.step-link-row{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:16px;font-size:12px;
}
.step-link-row a{color:var(--blue-dark);font-weight:700;cursor:pointer;text-decoration:none}
.step-link-row a:hover{text-decoration:underline}
#countdown,.countdown{font-size:12px;color:#718096;font-weight:600;margin-bottom:8px}

/* ---- OTP screen bits ---- */
.email-display{
  display:flex;align-items:center;justify-content:space-between;
  padding:13px 15px;background:var(--blue-soft);
  border:1px solid rgba(83,147,207,.14);border-radius:12px;margin-bottom:22px;
}
.email-info{min-width:0}
.email-label{
  display:block;font-size:10px;font-weight:700;color:#6B83A0;
  margin-bottom:3px;text-transform:uppercase;letter-spacing:.5px;
}
.email-value{
  font-size:13px;font-weight:600;color:#24466A;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.change-email{
  flex-shrink:0;border:none;background:none;color:var(--blue-dark);
  font:700 11px "Plus Jakarta Sans",sans-serif;cursor:pointer;margin-left:15px;
}
.change-email:hover{text-decoration:underline}

.verified-email-box{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 15px;background:var(--blue-soft);
  border:1px solid rgba(83,147,207,.14);border-radius:12px;
  margin-bottom:20px;font-size:13px;font-weight:600;color:#24466A;word-break:break-all;
}
.verified-badge{color:#059669;font-weight:700;white-space:nowrap}

/* single-input OTP (kept as a normal input, styled centered) */
.otp-single{letter-spacing:8px;text-align:center;font-weight:700;font-size:18px}

.resend-row{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:22px;font-size:12px;color:var(--muted);
}
.resend-btn{
  border:none;background:none;font:700 12px "Plus Jakarta Sans",sans-serif;
  color:#A0AEC0;cursor:not-allowed;
}
.resend-btn.active{color:var(--blue-dark);cursor:pointer}
.resend-btn.active:hover{text-decoration:underline}

.security-note{
  display:flex;align-items:flex-start;gap:9px;padding:12px 14px;margin-top:22px;
  background:#F8FAFC;border:1px solid var(--border);border-radius:10px;
  font-size:11px;line-height:1.5;color:#788698;
}
.security-icon{
  flex-shrink:0;width:14px;height:14px;border:1.5px solid #91A0B1;
  border-radius:50%;position:relative;margin-top:1px;
}
.security-icon:before{
  content:"";position:absolute;width:5px;height:5px;
  border-left:1.5px solid #91A0B1;border-bottom:1.5px solid #91A0B1;
  transform:rotate(-45deg);left:3px;top:2px;
}

/* ---- validation states (jquery.validate) ---- */
.jquery-validation-error,label.error,.error{
  color:#dc3545 !important;font-size:11px;font-weight:600;display:block;margin-top:5px;
}
.input.is-invalid,.select.is-invalid,.is-invalid{
  border-color:#dc3545 !important;
}

/* ---- right column: hero ---- */
.auth-right{
  position:relative;overflow:hidden;display:flex;align-items:flex-end;
  background:linear-gradient(180deg,rgba(18,32,61,.08),rgba(18,32,61,.84));
}
.auth-right .hero-bg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:0;
}
.auth-right .hero-scrim{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(18,32,61,.10),rgba(18,32,61,.86)),
             radial-gradient(circle at 75% 20%,rgba(83,147,207,.20),transparent 36%);
}
.hero-content{position:relative;z-index:2;padding:60px 70px;width:100%;color:#fff}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;padding:7px 11px;
  border-radius:999px;background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px);
  font-size:11px;font-weight:700;margin-bottom:19px;
}
.eyebrow-dot{width:6px;height:6px;border-radius:50%;background:#91C7F0}
.hero-content h2{
  max-width:500px;font-size:39px;line-height:1.16;
  letter-spacing:-1.2px;font-weight:800;margin-bottom:14px;
}
.hero-content p{max-width:480px;font-size:14px;line-height:1.7;color:rgba(255,255,255,.78)}

/* ---- responsive ---- */
@media(max-width:1000px){
  .auth-page{grid-template-columns:1fr}
  .auth-right{display:none}
  .auth-left{min-height:100vh;padding:34px 22px}
}
@media(max-width:560px){
  .auth-left{padding:28px 18px}
  .brand-logo{width:170px}
  .form-grid{grid-template-columns:1fr}
  .form-group.full{grid-column:auto}
  .heading h1{font-size:26px}
  .mobile-row .country-code{width:120px}
}


/* Login/signup error banner — shown when a form is submitted without
   JavaScript, where there is no toastr to pop a message. */
.auth-alert {
    display: block;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #FECACA;
    border-radius: 10px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 13.5px;
    line-height: 1.5;
}
