/* =====================================================================
   EzySewa — Auth pages (login / register / forgot / reset)
   Brand: Primary #1257CF · Secondary #12A86B · Dark #102340 · Light BG #EAF4FF
   Loaded after /css/ezy-ui.css. Class names match the existing markup + JS.
   ===================================================================== */
:root {
  --a-primary: #1257cf;
  --a-primary-dark: #0e45a6;
  --a-secondary: #12a86b;
  --a-dark: #102340;
  --a-light: #eaf4ff;
  --a-text: #475569;
  --a-border: #dbe4f0;
}
body.ez-auth { margin: 0; min-height: 100vh; background: var(--a-light); font-family: "Inter", system-ui, sans-serif; overflow-x: hidden; }
.login-wrapper, .register-wrapper, .forgot-wrapper, .reset-wrapper { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }

/* ---------- Left brand panel ---------- */
.left-panel {
  position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, #102340 0%, #0f3470 55%, #1257cf 130%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.blob-1 { width: 380px; height: 380px; background: var(--a-primary); top: -120px; left: -100px; }
.blob-2 { width: 320px; height: 320px; background: var(--a-secondary); bottom: -110px; right: -80px; opacity: .35; }
.pattern { position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.left-inner { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; width: 100%; }
.logo-wrap { margin-bottom: 44px; }
.logo-wrap img { height: 64px; width: auto; }
.slider-container { overflow: hidden; }
.slides { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; padding-right: 8px; }
.slide h2 { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.slide h2 span { color: #5eead4; }
.slide > p { color: #c7d7ee; font-size: .98rem; line-height: 1.6; margin: 0 0 26px; }
.slide-feature { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; backdrop-filter: blur(6px); }
.slide-feature h6 { color: #fff; font-size: .95rem; font-weight: 600; margin: 0 0 2px; }
.slide-feature p { color: #b6c8e4; font-size: .82rem; margin: 0; line-height: 1.45; }
.slide-feature .icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 1.2rem; color: #fff; }
.icon.green { background: var(--a-secondary); } .icon.blue { background: var(--a-primary); } .icon.purple { background: #6d5bd0; }
.slider-dots { display: flex; gap: 8px; margin-top: 26px; }
.slider-dots span { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: all .3s; }
.slider-dots span.active { width: 28px; background: #fff; }

/* ---------- Right form panel ---------- */
.right-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fff; }
.login-card, .register-card, .forgot-card, .reset-card, .success-screen { width: 100%; max-width: 430px; }
.register-card { max-width: 480px; }
.mobile-logo { display: none; text-align: center; margin-bottom: 26px; }
.mobile-logo img { height: 54px; width: auto; }
.login-header, .register-heading { margin-bottom: 26px; }
.login-header h2, .register-heading h1 { color: var(--a-dark); font-size: 1.7rem; font-weight: 700; margin: 0 0 6px; }
.login-header p, .register-heading p { color: var(--a-text); font-size: .92rem; margin: 0; }

.form-group { position: relative; margin-bottom: 16px; }
.form-group input {
  width: 100%; height: 52px; padding: 0 46px 0 44px; font: inherit; font-size: .95rem; color: var(--a-dark);
  background: #f7faff; border: 1.5px solid var(--a-border); border-radius: 12px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input:focus { background: #fff; border-color: var(--a-primary); box-shadow: 0 0 0 4px rgba(18, 87, 207, .12); }
.form-group input::placeholder { color: #94a3b8; }
.form-group .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: #94a3b8; pointer-events: none; transition: color .2s; }
.form-group input:focus ~ .icon { color: var(--a-primary); }
/* login uses a floating label */
.form-group label { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .95rem; pointer-events: none; transition: all .18s; background: transparent; }
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label { top: 0; left: 36px; padding: 0 6px; font-size: .72rem; font-weight: 600; color: var(--a-primary); background: #fff; }
.toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: #94a3b8; border-radius: 8px; cursor: pointer; }
.toggle-pass:hover { color: var(--a-primary); background: var(--a-light); }
.form-text { margin: -8px 0 16px; font-size: .76rem; color: var(--a-text); }

.captcha-group { margin-bottom: 16px; }
.captcha-group > label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 600; color: var(--a-dark); }
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.captcha-image-wrap { flex: 1; display: grid; place-items: center; height: 56px; padding: 3px; background: var(--a-light); border: 1.5px dashed #a9c4ee; border-radius: 12px; overflow: hidden; }
.captcha-image-wrap img { max-width: 100%; height: 48px; object-fit: contain; }
.captcha-refresh { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.25rem; color: var(--a-primary); background: var(--a-light); border: 1.5px solid var(--a-border); border-radius: 12px; cursor: pointer; transition: all .2s; }
.captcha-refresh:hover { background: var(--a-primary); color: #fff; border-color: var(--a-primary); }
.captcha-group input { width: 100%; height: 50px; padding: 0 16px; font: inherit; letter-spacing: .08em; color: var(--a-dark); background: #f7faff; border: 1.5px solid var(--a-border); border-radius: 12px; outline: 0; }
.captcha-group input:focus { background: #fff; border-color: var(--a-primary); box-shadow: 0 0 0 4px rgba(18, 87, 207, .12); }

.forgot-row { display: flex; justify-content: flex-end; margin: -2px 0 18px; }
.forgot-link, .resend-text a, .login-link a, .register-text a { color: var(--a-primary); font-weight: 600; text-decoration: none; cursor: pointer; }
.forgot-link { font-size: .85rem; } .forgot-link:hover, .login-link a:hover, .register-text a:hover { text-decoration: underline; }

.btn-login, .btn-next {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 20px; margin-top: 4px;
  font: inherit; font-size: 1rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--a-primary), var(--a-primary-dark));
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(18, 87, 207, .28); transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-login:hover, .btn-next:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(18, 87, 207, .34); filter: brightness(1.05); color: #fff; }
.btn-login:disabled, .btn-next:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-login .spinner { display: none; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: ez-spin .7s linear infinite; }
.btn-login.loading .btn-text { display: none; } .btn-login.loading .spinner { display: block; }
.btn-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--a-text); background: none; border: 0; cursor: pointer; }
.btn-back:hover { color: var(--a-primary); }

.register-text, .login-link { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--a-text); }
.register-text a, .login-link a { margin-left: 6px; }
.security-badge { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding: 10px 14px; font-size: .78rem; color: #0b7a4c; background: #e6f8f0; border-radius: 10px; }

/* ---------- Register: stepper + OTP ---------- */
.progress-steps { position: relative; display: flex; justify-content: space-between; margin: 0 4px 28px; }
.progress-steps::before { content: ""; position: absolute; top: 15px; left: 16px; right: 16px; height: 3px; background: var(--a-border); border-radius: 3px; }
.progress-bar-fill { position: absolute; top: 15px; left: 16px; height: 3px; width: 0; background: var(--a-secondary); border-radius: 3px; transition: width .4s ease; z-index: 1; }
.progress-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.progress-step .circle { width: 32px; height: 32px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #94a3b8; background: #fff; border: 2px solid var(--a-border); border-radius: 50%; transition: all .3s; }
.progress-step.active .circle { color: #fff; background: var(--a-primary); border-color: var(--a-primary); box-shadow: 0 0 0 5px rgba(18, 87, 207, .15); }
.progress-step.done .circle { color: #fff; background: var(--a-secondary); border-color: var(--a-secondary); }
.progress-step .label { font-size: .7rem; font-weight: 600; color: #94a3b8; }
.progress-step.active .label { color: var(--a-primary); } .progress-step.done .label { color: var(--a-secondary); }
.step-panel { display: none; } .step-panel.active { display: block; animation: ez-fade .35s ease; }
.step-title { color: var(--a-dark); font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.step-desc { color: var(--a-text); font-size: .9rem; margin: 0 0 20px; }
.otp-inputs { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.otp-inputs input { flex: 1; min-width: 0; height: 54px; text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--a-dark); background: #f7faff; border: 1.5px solid var(--a-border); border-radius: 12px; outline: 0; }
.otp-inputs input:focus { background: #fff; border-color: var(--a-primary); box-shadow: 0 0 0 4px rgba(18, 87, 207, .12); }
.resend-text { margin-bottom: 18px; font-size: .85rem; color: var(--a-text); }
.resend-text a.disabled { color: #94a3b8; pointer-events: none; }
.spam-notice { margin-bottom: 18px; padding: 14px 16px; background: #fff8e6; border: 1px solid #fde4a1; border-radius: 12px; }
.spam-notice p { margin: 0 0 6px; font-size: .8rem; font-weight: 600; color: #8a5a00; }
.spam-notice p:last-child { margin-bottom: 0; } .spam-notice p.spam-notice-body { font-weight: 400; color: #6b5420; }
.spam-notice hr { border: 0; border-top: 1px dashed #f0cf7a; margin: 10px 0; }

/* ---------- Success screen ---------- */
.success-screen { display: none; text-align: center; padding: 20px 8px; animation: ez-fade .5s ease; }
.success-screen.show { display: block; }
.success-circle { width: 96px; height: 96px; display: grid; place-items: center; margin: 0 auto 22px; background: #dcf7ea; border-radius: 50%; animation: ez-pop .6s cubic-bezier(.175, .885, .32, 1.275) both; }
.success-circle i { font-size: 3rem; color: var(--a-secondary); }
.success-screen h2 { color: var(--a-dark); font-size: 1.55rem; font-weight: 700; margin: 0 0 8px; }
.success-screen p { color: var(--a-text); font-size: .95rem; margin: 0 0 26px; }
@keyframes ez-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ez-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ez-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .login-wrapper, .register-wrapper, .forgot-wrapper, .reset-wrapper { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .right-panel { min-height: 100vh; background: linear-gradient(180deg, var(--a-light), #fff 40%); align-items: flex-start; padding-top: 36px; }
  .mobile-logo { display: block; }
}
@media (max-width: 480px) {
  .right-panel { padding: 28px 18px; }
  .progress-step .label { font-size: .62rem; }
  .otp-inputs { gap: 6px; } .otp-inputs input { height: 48px; }
}
