/* ============================================================
   ডক্টরপাড়া — forgot-password.css
   Split-panel layout, teal theme  (matches login / register)
   ============================================================ */
:root {
    --teal:        #0D9488;
    --teal-dk:     #0F766E;
    --teal-lt:     #14B8A6;
    --teal-ltr:    #5EEAD4;
    --teal-bg:     rgba(13,148,136,.09);
    --success-bg:  rgba(22,163,74,.09);
    --danger-bg:   rgba(220,38,38,.07);
    --amber:       #D97706;
    --amber-bg:    rgba(217,119,6,.09);
    --muted:       #7A8FA6;
    --bg-lt:       #F0FDFA;
    --r-sm:        10px;
    --r-md:        16px;
    --tr:          all .26s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   SPLIT WRAPPER
   ============================================================ */
.split-wrap {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.left-panel {
    width: 42%;
    background: linear-gradient(160deg, #134E4A 0%, var(--teal-dk) 45%, var(--teal-lt) 100%);
    display: flex;
    flex-direction: column;
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.left-panel::before {
    content: '';
    position: absolute;
    top: -90px; right: -90px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.left-panel::after {
    content: '';
    position: absolute;
    bottom: -70px; left: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: auto;
}
.lp-brand i { color: #99F6E4; font-size: 1.8rem; }

.lp-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.lp-icon-wrap {
    width: 88px;
    height: 88px;
    background: rgba(255,255,255,.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,.2);
}
.lp-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 12px;
}
.lp-sub {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin-bottom: 32px;
}
.lp-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lp-step {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lp-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: var(--white);
    font-size: .78rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.25);
    transition: var(--tr);
}
.lp-step-num.done  { background: var(--success); border-color: var(--success); }
.lp-step-num.cur   { background: var(--white); color: var(--teal-dk); border-color: var(--white); }
.lp-step-txt {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}
.lp-step-txt.cur { color: var(--white); font-weight: 800; }

.lp-footer {
    font-size: .76rem;
    color: rgba(255,255,255,.4);
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #FAFFFE;
}
.rp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.rp-back {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    transition: var(--tr);
}
.rp-back:hover { color: var(--teal-lt); }
.rp-back i { font-size: .95rem; }
.rp-login-hint {
    font-size: .82rem;
    color: var(--muted);
}
.rp-login-hint a { color: var(--teal-lt); font-weight: 700; transition: var(--tr); }
.rp-login-hint a:hover { color: var(--teal-dk); }

.rp-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}
.rp-body {
    width: 100%;
    max-width: 440px;
}

/* STEP DOTS */
.step-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}
.sdot {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    transition: var(--tr);
    flex-shrink: 0;
}
.sdot.active { background: var(--teal-lt); width: 24px; }
.sdot.done   { background: var(--success); width: 6px; }
.sdot.idle   { width: 6px; }

/* STEP SCREENS */
.step-screen { display: none; }
.step-screen.active { display: block; }

/* TITLES */
.rp-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 6px;
}
.rp-sub {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.6;
}

/* METHOD SELECTOR */
.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.method-card {
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--tr);
    background: var(--white);
}
.method-card:hover { border-color: rgba(20,184,166,.4); background: var(--teal-bg); }
.method-card.sel   { border-color: var(--teal-lt); background: var(--teal-bg); }
.method-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    transition: var(--tr);
}
.method-card.sel i { color: var(--teal-lt); }
.method-card .m-lbl { font-size: .8rem; font-weight: 800; color: var(--dark); }
.method-card .m-sub { font-size: .68rem; color: var(--muted); }

/* FORM GROUPS */
.fg { margin-bottom: 16px; }
.fg label {
    display: block;
    font-size: .79rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.input-wrap {
    position: relative;
}
.input-wrap i.ic-left {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .95rem;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px 13px 11px 38px;
    font-size: .87rem;
    color: var(--dark);
    outline: none;
    transition: var(--tr);
    background: var(--white);
}
.input-wrap input:focus {
    border-color: var(--teal-lt);
    box-shadow: 0 0 0 3px rgba(20,184,166,.1);
}
.input-wrap.has-toggle input { padding-right: 42px; }
.toggle-pw {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: .95rem;
    padding: 0;
    transition: var(--tr);
}
.toggle-pw:hover { color: var(--teal-lt); }

/* PHONE PREFIX */
.phone-row { display: flex; gap: 8px; }
.phone-prefix {
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px 13px;
    font-size: .87rem;
    color: var(--dark);
    background: var(--bg-lt);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.phone-row .input-wrap { flex: 1; }
.phone-row .input-wrap input { padding-left: 13px; }

/* OTP BOXES */
.otp-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 6px;
}
.otp-box {
    width: 50px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark);
    outline: none;
    transition: var(--tr);
    background: var(--white);
    font-family: 'Hind Siliguri', sans-serif;
}
.otp-box:focus { border-color: var(--teal-lt); box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.otp-box.filled { border-color: var(--teal-lt); background: var(--teal-bg); }

.otp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 8px;
}
.otp-timer { font-size: .78rem; color: var(--muted); }
.otp-timer span { font-weight: 800; color: var(--teal-lt); }
.btn-resend {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Hind Siliguri', sans-serif;
    transition: var(--tr);
}
.btn-resend:not(:disabled):hover { color: var(--teal-lt); }
.btn-resend:disabled { opacity: .5; cursor: not-allowed; }

/* PASSWORD STRENGTH */
.pw-strength-bar {
    height: 5px;
    border-radius: 3px;
    background: var(--border);
    margin-top: 6px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: var(--tr);
}
.pw-strength-lbl {
    font-size: .7rem;
    font-weight: 700;
    margin-top: 4px;
    text-align: right;
}
.pw-rules {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}
.pw-rule {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .73rem;
    color: var(--muted);
    transition: var(--tr);
}
.pw-rule i { font-size: .75rem; }
.pw-rule.pass { color: var(--success); }

/* INFO BOX */
.info-box {
    background: var(--teal-bg);
    border: 1.5px solid rgba(20,184,166,.2);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.info-box i { color: var(--teal-lt); flex-shrink: 0; margin-top: 2px; }
.info-box p { font-size: .77rem; color: var(--text); margin: 0; line-height: 1.6; }

/* BUTTONS */
.btn-primary-full {
    width: 100%;
    background: linear-gradient(135deg, var(--teal-dk), var(--teal-lt));
    color: var(--white);
    border: none;
    border-radius: var(--r-sm);
    padding: 13px;
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--tr);
    font-family: 'Hind Siliguri', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(13,148,136,.22);
    margin-top: 4px;
}
.btn-primary-full:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(13,148,136,.3); }
.btn-primary-full:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* SUCCESS SCREEN */
.success-wrap {
    text-align: center;
    padding: 20px 0;
}
.success-anim {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-dk), var(--teal-lt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    margin: 0 auto 22px;
    box-shadow: 0 8px 28px rgba(13,148,136,.3);
    animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-size: 1.35rem; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.success-sub   { font-size: .86rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }

/* ERROR BOX */
.err-box {
    background: var(--danger-bg);
    border: 1.5px solid rgba(220,38,38,.15);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: .78rem;
    color: var(--danger);
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.err-box.show { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {

    .left-panel { width: 38%; padding: 32px 28px; }
    .lp-title { font-size: 1.4rem; }

}

@media (max-width: 720px) {

    .left-panel { display: none; }
    
    .split-wrap { height: auto; min-height: 100vh; }
    .right-panel { min-height: 100vh; }
    .rp-center { padding: 24px 16px 40px; }
    .rp-top { padding: 16px 20px; }
    .otp-box { width: 42px; height: 50px; font-size: 1.1rem; }

}

@media (max-width: 360px) {

    .otp-box { width: 36px; height: 46px; font-size: 1rem; }
    .otp-grid { gap: 6px; }

}

