/* assets/css/face.css — ফেস দিয়ে রেজিস্ট্রেশন/লগইনের বাটন ও ক্যামেরা-মোডাল */

/* ---------- বাটন ---------- */
.face-panel { margin-top: 8px; padding: 18px 18px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(0,106,78,0.09), rgba(13,148,136,0.07)); border: 1px solid rgba(0,106,78,0.14); text-align: center; }
body.dark-mode .face-panel { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.face-panel .face-lead { font-size: 12.5px; color: var(--muted-text); margin: 0 0 10px; line-height: 1.55; }
.face-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border: none; border-radius: 12px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0d9488, #006a4e); box-shadow: 0 6px 16px rgba(0,106,78,0.28); transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; }
.face-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,106,78,0.34); }
.face-btn:active { transform: translateY(0); }
.face-btn i { font-size: 18px; }
.face-btn.alt { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 6px 16px rgba(37,99,235,0.25); }
.face-btn.ghost { background: rgba(0,106,78,0.08); color: var(--primary-green); box-shadow: none; border: 1.5px solid rgba(0,106,78,0.25); }
.face-btn.danger { background: linear-gradient(135deg, #e11d48, #be123c); box-shadow: 0 6px 16px rgba(225,29,72,0.25); }
.face-btn.sm { width: auto; padding: 9px 14px; font-size: 13px; }
.face-consent { display: flex; gap: 9px; align-items: flex-start; text-align: left; font-size: 12.5px; line-height: 1.55; margin: 12px 0; color: var(--text-dark); }
.face-consent input { margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px; }
.face-note { font-size: 11.5px; color: var(--muted-text); margin: 10px 0 0; line-height: 1.55; }

/* নিবন্ধনের পদ্ধতি-বাছাই কার্ড */
.reg-methods { display: grid; gap: 10px; margin: 4px 0 18px; }
.reg-method { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid rgba(0,106,78,0.16); background: rgba(255,255,255,0.6); cursor: pointer; text-align: left; font: inherit; color: var(--text-dark); width: 100%; transition: border-color .15s ease, background .15s ease; }
body.dark-mode .reg-method { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.reg-method:hover, .reg-method.on { border-color: var(--primary-green); background: rgba(0,106,78,0.07); }
.reg-method .rm-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; background: linear-gradient(135deg, #0d9488, #006a4e); }
.reg-method .rm-ico.g { background: #fff; border: 1px solid #e3e8e6; }
.reg-method .rm-ico.p { background: linear-gradient(135deg, #f2a900, #d97706); }
.reg-method b { display: block; font-size: 14.5px; }
.reg-method small { display: block; font-size: 12px; color: var(--muted-text); margin-top: 2px; }
.reg-pane { display: none; }
.reg-pane.on { display: block; }

/* ---------- ক্যামেরা মোডাল ---------- */
body.face-open { overflow: hidden; }
.face-ov { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(8,20,16,0.78); backdrop-filter: blur(4px); padding: 14px; }
.face-ov.show { display: flex; }
.face-box { position: relative; width: 100%; max-width: 420px; background: var(--card-bg, #fff); color: var(--text-dark, #14201c); border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.4); text-align: center; }
body.dark-mode .face-box { background: #16221e; }
.face-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: none; border-radius: 50%; background: rgba(0,0,0,0.07); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.face-title { font-size: 17px; font-weight: 700; color: var(--primary-green, #006a4e); margin: 2px 30px 12px; }
.face-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0b1512; }
.face-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.face-ring { position: absolute; left: 50%; top: 50%; width: 52%; height: 78%; transform: translate(-50%, -50%); border: 3px dashed rgba(255,255,255,0.8); border-radius: 50% / 52%; box-shadow: 0 0 0 999px rgba(0,0,0,0.28); transition: border-color .2s ease; pointer-events: none; }
.face-ring.ok { border-style: solid; border-color: #34d399; }
.face-steps { display: flex; justify-content: center; gap: 8px; margin: 12px 0 4px; min-height: 26px; }
.face-steps span { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,0.07); color: var(--muted-text, #5b6b66); }
.face-steps span.on { background: rgba(0,106,78,0.14); color: var(--primary-green, #006a4e); }
.face-steps span.done { background: var(--primary-green, #006a4e); color: #fff; }
.face-msg { min-height: 42px; margin-top: 8px; font-size: 14px; line-height: 1.55; font-weight: 600; }
.face-msg.err { color: #dc2626; }
.face-msg.ok { color: #059669; }
.face-msg.info { color: var(--muted-text, #5b6b66); font-weight: 500; }
.face-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.face-act { padding: 10px 18px; border: none; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #0d9488, #006a4e); }
.face-act.ghost { background: rgba(0,0,0,0.07); color: inherit; }
@media (prefers-reduced-motion: reduce) { .face-btn, .face-btn:hover { transition: none; transform: none; } }

/* রেঞ্জ কমান্ডার প্যানেলের রঙিন কার্ডের ভেতরে */
.range-cta .face-btn { background: #fff; color: #0f766e; box-shadow: none; }
.range-cta .face-btn.danger { background: #fff; color: #be123c; }
.range-cta .face-consent { color: #fff; }

/* ---------- ফাঁকা কমানো: লগইন/নিবন্ধন পেজ ---------- */
.auth-main .face-panel { margin-top: 0; padding: 12px; border-radius: 14px; }
.auth-main .face-panel .face-lead { margin: 0 0 8px; font-size: 12.5px; }
.auth-main .face-panel .form-group { margin-bottom: 8px; }
.auth-main .face-panel .form-control { padding-top: 11px; padding-bottom: 11px; }
.auth-main .face-consent { margin: 8px 0; font-size: 12px; line-height: 1.5; }
.auth-main .face-note { margin: 8px 0 0; }
.auth-main .face-btn { padding: 12px 14px; }
.auth-main .divider { margin: 12px 0; font-size: 12.5px; }
.auth-main .form-group { margin-bottom: 13px; }
.auth-main .forgot-link { margin-top: -4px; margin-bottom: 12px; }
.auth-main .social-panel { padding: 10px 12px 2px; margin-top: 4px; }
.auth-main .social-row { gap: 10px; margin-bottom: 4px; }
.auth-main .auth-links { margin-top: 12px; line-height: 1.7; }
.auth-main .auth-hint-card { margin-top: 12px; padding: 11px 14px; }
.auth-main .terms-note { margin-top: 12px; }
.auth-body { padding-top: 20px; }

/* ---------- আমার ছুটি: ভূমিকার কার্ডে ফেস বাটন ---------- */
.lv-face-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-face-grid > * { margin: 0 !important; width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
.lv-btn.lv-face { background: linear-gradient(135deg, #0d9488, #006a4e) !important; color: #fff !important; border: none; font-weight: 700; cursor: pointer; }
.lv-btn.lv-face.alt { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
.lv-face-grid .lv-btn { font-size: 13px; padding-left: 8px; padding-right: 8px; }
@media (max-width: 360px) { .lv-face-grid { grid-template-columns: 1fr; } }
