/* Register-only additions on top of css/auth.css: step progress, step panels,
   left-panel step content, OTP boxes, password strength, back button, terms text.
   Extracted from templates/auth/merchant/merchant_register.html. */

/* Minor overrides vs. the shared auth-card defaults in auth.css */
.auth-card { padding: 40px 44px 36px; }
.card-eyebrow { margin-bottom: 8px; }
.card-sub { margin-bottom: 28px; }
.sl-body { padding: 48px 0 36px; }

/* Left panel: JS toggles which step's content is shown */
.sl-step-panel { display: none; }
.sl-step-panel.active { display: flex; flex-direction: column; }

/* Security info blocks (step 2, left panel) */
.sl-info-block { display: flex; flex-direction: column; gap: 14px; }
.sl-info-item {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: var(--r-sm);
}
.sl-info-item i { color: var(--g); margin-top: 2px; width: 14px; flex-shrink: 0; font-size: 0.88rem; }
.sl-info-item-title { font-size: 0.83rem; font-weight: 600; color: var(--text-1); margin-bottom: 3px; }
.sl-info-item-sub   { font-size: 0.77rem; color: var(--text-3); line-height: 1.55; }

/* Next-steps list (step 3, left panel) */
.sl-next-steps { display: flex; flex-direction: column; gap: 15px; }
.sl-next-item  { display: flex; align-items: flex-start; gap: 12px; }
.sl-next-num {
    width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
    background: var(--g-glow); border: 1px solid var(--border-g);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; color: var(--g);
}
.sl-next-text { font-size: 0.84rem; color: var(--text-2); line-height: 1.55; }
.sl-next-text strong { color: var(--text-1); }

/* Step progress indicator (right panel) */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; position: relative; z-index: 1; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; }
.step-dot {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.74rem; font-weight: 700;
    background: var(--ink-4); border: 1.5px solid var(--border-m);
    color: var(--text-3);
    transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, color 0.35s, box-shadow 0.35s;
    position: relative; z-index: 1;
}
.step-dot.active { background: var(--g); border-color: var(--g); color: #000; box-shadow: 0 0 14px var(--g-glow-md); }
.step-dot.done { background: rgba(0,230,118,0.14); border-color: var(--border-g); color: var(--g); }
.step-label {
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--text-3); transition: color 0.3s; white-space: nowrap;
}
.step-item.active .step-label { color: var(--g); }
.step-item.done   .step-label { color: var(--text-2); }
.step-connector { flex: 1; height: 1.5px; background: var(--border-m); margin-bottom: 24px; position: relative; z-index: 0; transition: background 0.4s; }
.step-connector.done { background: rgba(0,230,118,0.35); }

/* Step panels (right panel: phone / OTP / password) */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* Helper text below a field */
.fl-hint { font-size: 0.72rem; color: var(--text-3); margin-top: 6px; line-height: 1.5; }

/* OTP boxes */
.otp-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; display: block; }
.otp-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.otp-box {
    width: 46px; height: 54px; flex-shrink: 0; text-align: center;
    background: transparent; border: none; border-bottom: 2px solid var(--border-m); border-radius: 0;
    color: var(--text-1);
    font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700;
    outline: none; caret-color: var(--g);
    transition: border-color 0.25s, color 0.25s;
    -webkit-appearance: none; appearance: none;
}
.otp-box:focus    { border-bottom-color: var(--g); }
.otp-box.filled   { border-bottom-color: var(--g); color: var(--g); }
.otp-box.invalid  { border-bottom-color: rgba(239,68,68,0.5); }

.resend-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.resend-hint { font-size: 0.78rem; color: var(--text-3); }
.resend-hint strong { color: var(--text-2); }
.resend-btn {
    background: none; border: none; padding: 0;
    font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
    color: var(--g); cursor: pointer; transition: opacity 0.2s;
}
.resend-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.resend-btn:not(:disabled):hover { text-decoration: underline; }

/* Password strength meter */
.pw-strength { display: flex; gap: 5px; margin-top: 10px; }
.pw-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--border-m); transition: background 0.3s; }
.pw-bar.weak { background: #ef4444; }
.pw-bar.fair { background: #f59e0b; }
.pw-bar.good { background: var(--g); }
.pw-hint { font-size: 0.73rem; color: var(--text-3); margin-top: 6px; line-height: 1.5; transition: color 0.2s; }
.pw-hint.good { color: var(--g); }

/* Back text button */
.btn-back {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: none; border: none; width: 100%; margin-top: 14px;
    font-family: 'Inter', sans-serif; font-size: 0.78rem; color: var(--text-3);
    cursor: pointer; transition: color 0.2s; padding: 4px;
}
.btn-back:hover { color: var(--text-2); }
.btn-back i { font-size: 0.65rem; }

/* Terms text + footer spacing (register's footer has extra top margin vs login's) */
.terms-text { font-size: 0.72rem; color: var(--text-3); text-align: center; margin-top: 14px; line-height: 1.65; }
.terms-text a { color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.terms-text a:hover { color: var(--g); }
.card-footer { margin-top: 24px; }

/* Responsive additions specific to the stepped register form */
@media (max-width: 560px) {
    .auth-card { padding: 28px 18px 24px; }
    .otp-box { width: 40px; height: 48px; font-size: 1.2rem; }
    .otp-row { gap: 6px; }
    .card-sub { margin-bottom: 22px; font-size: 0.8rem; }
    .step-label { font-size: 0.58rem; letter-spacing: 0.3px; }
}
@media (max-width: 400px) {
    .otp-box { width: 34px; height: 44px; font-size: 1.05rem; }
    .otp-row { gap: 4px; }
    .step-label { display: none; }
}

/* Light-mode overrides specific to register-only elements */
html[data-theme="light"] .otp-box:focus  { border-bottom-color: var(--g-dark); }
html[data-theme="light"] .otp-box.filled { border-bottom-color: var(--g-dark); color: var(--g-dark); }
html[data-theme="light"] .step-dot        { background: var(--ink-4); border-color: rgba(0,0,0,0.18); }
html[data-theme="light"] .step-dot.done   { background: rgba(0,180,72,0.12); border-color: rgba(0,170,85,0.35); }
html[data-theme="light"] .step-connector.done { background: rgba(0,170,85,0.3); }
html[data-theme="light"] .sl-info-item    { background: rgba(0,0,0,0.03) !important; }
html[data-theme="light"] .pw-bar.good     { background: var(--g-dark); }
html[data-theme="light"] .pw-hint.good    { color: var(--g-dark); }
