/* assets/css/auth.css — লগইন, রেজিস্ট্রেশন, পাসওয়ার্ড রিসেট ও নিরাপত্তা পেজের সম্মিলিত ডিজাইন।
   সাইটের মূল রঙ (theme.css-এর --primary-green ইত্যাদি) ব্যবহার করা হয়েছে, তাই সব পেজ একই ধাঁচে দেখায়। */

main.auth-main { flex: 1; width: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 0 0 40px; }

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    padding: 0 0 34px;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(255,255,255,0.4);
    overflow: hidden;
}
.auth-card-head {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 30px 28px 26px;
    text-align: center;
    color: #fff;
}
.auth-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 25px; border: 2px solid rgba(255,255,255,0.4); }
.auth-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.auth-sub { font-size: 13.5px; color: rgba(255,255,255,0.9); line-height: 1.55; }
.auth-body { padding: 28px 26px 0; max-width: 520px; margin: 0 auto; }

/* ধাপ-নির্দেশক (রেজিস্ট্রেশন/রিসেট) */
.auth-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto 26px; max-width: 360px; }
.auth-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 74px; }
.auth-step .dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #e6ecea; color: #7a8a86; border: 2px solid #e6ecea; transition: all .2s ease; }
.auth-step .lbl { font-size: 11.5px; color: var(--muted-text); font-weight: 600; text-align: center; }
.auth-step.done .dot { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.auth-step.active .dot { background: #fff; border-color: var(--primary-green); color: var(--primary-green); box-shadow: 0 0 0 4px rgba(0,106,78,0.12); }
.auth-step.active .lbl { color: var(--primary-green); }
.auth-step-line { flex: 1 1 auto; height: 2px; background: #e6ecea; margin-bottom: 22px; min-width: 18px; }
.auth-step-line.done { background: var(--primary-green); }
body.dark-mode .auth-step .dot { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.08); color: #9db0ac; }
body.dark-mode .auth-step.active .dot { background: transparent; }

/* ফর্ম */
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 7px; }
.form-group .hint { display: block; font-size: 12px; color: var(--muted-text); margin-top: 6px; line-height: 1.5; }
.input-wrap { position: relative; }
.input-wrap i.field-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--primary-green); opacity: .7; font-size: 14px; pointer-events: none; z-index: 2; }
.form-control { width: 100%; padding: 14px 15px 14px 42px; border-radius: 12px; border: 1.5px solid #dfe6e4; font-size: 15px; font-family: inherit; background: rgba(255,255,255,0.8); color: var(--text-dark); transition: border-color .2s ease, box-shadow .2s ease; }
.form-control:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(0,106,78,0.14); }
body.dark-mode .form-control { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: var(--text-dark); }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
@media (max-width: 560px) { .form-row { flex-direction: column; gap: 0; } .auth-body { padding: 24px 20px 0; } }

/* OTP কোডের বড় বক্স */
.code-input { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 12px; padding: 14px 10px 14px 22px; }

/* পাসওয়ার্ডের মান-নির্দেশক */
.pw-meter { height: 5px; border-radius: 5px; background: #e6ecea; margin-top: 9px; overflow: hidden; }
.pw-meter > span { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--ansar-red); transition: width .25s ease, background .25s ease; }
.pw-meter-text { font-size: 12px; margin-top: 5px; color: var(--muted-text); min-height: 16px; }

/* বার্তা */
.auth-msg { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; margin-bottom: 18px; text-align: left; font-weight: 600; }
.auth-msg i { margin-top: 3px; }
.auth-msg.error { background: rgba(244,42,65,0.08); color: #c21f33; border: 1px solid rgba(244,42,65,0.22); }
.auth-msg.success { background: rgba(0,106,78,0.08); color: var(--primary-green); border: 1px solid rgba(0,106,78,0.22); }
.auth-msg.info { background: rgba(242,169,0,0.1); color: #8a6200; border: 1px solid rgba(242,169,0,0.3); }
body.dark-mode .auth-msg.error { color: #ff8a97; }
body.dark-mode .auth-msg.info { color: #f2c04d; }

.btn-row { display: flex; gap: 12px; margin-top: 6px; }
.btn-row .btn { flex: 1; margin-top: 0; }

/* লিংক ও সহায়তা */
.auth-links { text-align: center; margin-top: 20px; font-size: 13.5px; line-height: 1.9; }
.auth-links a, .forgot-link, .link-btn { color: var(--primary-green); font-weight: 700; text-decoration: none; }
.auth-links a:hover, .forgot-link:hover, .link-btn:hover { text-decoration: underline; }
.link-btn { background: none; border: none; font: inherit; cursor: pointer; padding: 0; }
.forgot-link { display: block; text-align: right; font-size: 12.5px; margin-top: -8px; margin-bottom: 18px; }
.auth-hint-card { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgba(0,106,78,0.05); border: 1px solid rgba(0,106,78,0.1); font-size: 12.5px; color: var(--muted-text); line-height: 1.7; text-align: left; }
.auth-hint-card b { color: var(--text-dark); }
body.dark-mode .auth-hint-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

.social-panel { margin-top: 8px; padding: 20px 20px 4px; border-radius: 16px; background: rgba(0,106,78,0.045); border: 1px solid rgba(0,106,78,0.08); }
body.dark-mode .social-panel { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.social-row { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.social-row .btn { margin-top: 0; }
.terms-note { font-size: 11.5px; color: var(--muted-text); text-align: center; margin-top: 18px; line-height: 1.6; }
.terms-note a { color: var(--primary-green); font-weight: 600; text-decoration: none; }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row img { border-radius: 10px; border: 1.5px solid #dfe6e4; height: 50px; flex-shrink: 0; }
.captcha-refresh { background: rgba(0,106,78,0.08); border: none; color: var(--primary-green); width: 46px; height: 50px; border-radius: 10px; cursor: pointer; flex-shrink: 0; font-size: 15px; }
.captcha-row .form-control { padding-left: 15px; letter-spacing: 3px; font-weight: 700; text-align: center; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* নিরাপত্তা পেজ */
.sec-section { margin-bottom: 30px; }
.sec-section h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.sec-section > p { font-size: 12.5px; color: var(--muted-text); margin-bottom: 14px; line-height: 1.6; }
.dev-list { list-style: none; padding: 0; margin: 0; }
.dev-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
body.dark-mode .dev-list li { border-color: rgba(255,255,255,0.08); }
.dev-list .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,106,78,0.08); color: var(--primary-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dev-list .meta { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.dev-list .meta small { display: block; font-weight: 400; color: var(--muted-text); font-size: 12px; margin-top: 2px; }
.badge-now { font-size: 11px; font-weight: 700; color: var(--primary-green); background: rgba(0,106,78,0.1); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }

@media (min-width: 992px) {
    .auth-card-head { padding: 38px 48px 32px; }
    .auth-body { padding: 34px 48px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== রেজিস্ট্রেশনে ভূমিকা বাছাই ===== */
.auth-card-head-slim { padding: 22px 28px 18px; }
.auth-card-head-slim .auth-icon { margin-bottom: 0; }
.role-grid { display: grid; gap: 12px; margin-bottom: 18px; }
.auth-main a.role-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid #dfe6e4; border-radius: 14px; background: #fff; color: var(--text-dark); text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); transition: border-color .15s, box-shadow .15s, transform .1s; }
.auth-main a.role-box:hover, .auth-main a.role-box:focus { border-color: var(--primary-green); box-shadow: 0 4px 14px rgba(0, 106, 78, .14); transform: translateY(-1px); text-decoration: none; }
.role-ico { flex: 0 0 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 106, 78, .12); color: var(--primary-green); font-size: 19px; }
.role-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; text-align: left; }
.role-txt b { font-size: 15.5px; font-weight: 700; color: var(--text-dark); }
.role-txt small { font-size: 12.5px; color: var(--muted-text); }
.role-go { flex: 0 0 auto; color: var(--primary-green); opacity: .6; font-size: 13px; }
.auth-main a.role-community { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; margin-bottom: 4px; border: 1.5px dashed var(--primary-green); border-radius: 14px; color: var(--primary-green); font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; }
.auth-main a.role-community:hover { background: rgba(0, 106, 78, .08); text-decoration: none; }
body.dark-mode .auth-main a.role-box { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .15); }
.role-chip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: rgba(27, 127, 74, .1); font-size: 13.5px; }
.role-chip a { margin-left: auto; color: var(--primary-green, #1b7f4a); font-weight: 700; }
