/* Login page */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans Bengali', sans-serif; color: #0f2a5c; background: #fff; min-height: 100vh; }
.lg-wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }

/* ---- left ---- */
.lg-brand { position: relative; overflow: hidden; padding: 42px 56px 36px; color: #fff; background-color: #0a3f9e; background-repeat: no-repeat; background-size: cover; background-position: right bottom; }
.lg-bg-device { background-image: url('../img/login-bg-device.jpg'); }
.lg-bg-plain { background-image: url('../img/login-bg-plain.jpg'); }
.lg-brand > * { position: relative; }
.lg-logo { display: flex; align-items: center; gap: 12px; }
.lg-logo > i { font-size: 46px; color: #2fd3e6; }
.lg-logo b { display: block; font-size: 30px; line-height: 1.1; }
.lg-logo small { font-size: 16px; opacity: .92; }
.lg-brand h1 { font-size: 64px; line-height: 1.15; margin: 40px 0 8px; font-weight: 700; }
.lg-tag { font-size: 24px; font-weight: 500; margin-bottom: 30px; }
.lg-features { list-style: none; display: grid; gap: 12px; max-width: 520px; }
.lg-features li { display: flex; align-items: center; gap: 16px; font-size: 18px; }
.lg-features small { opacity: .85; font-size: 17px; }
.lg-fi { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 20px; flex: none; }

.lg-device { position: absolute; right: 38px; bottom: 150px; width: 270px; height: 290px; background: linear-gradient(#2a2d33, #121418); border-radius: 22px; box-shadow: 0 26px 50px rgba(0, 0, 0, .45); padding: 18px; }
.lg-screen { height: 108px; border-radius: 10px; background: linear-gradient(#2f6fd6, #123f8f); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lg-screen b { font-size: 34px; letter-spacing: 1px; }
.lg-screen small { font-size: 13px; opacity: .9; }
.lg-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 120px; margin-top: 16px; }
.lg-keys i { height: 17px; border-radius: 4px; background: #3a3e46; }
.lg-scan { position: absolute; right: 18px; bottom: 56px; width: 70px; height: 90px; border-radius: 12px; background: #0c0f13; display: grid; place-items: center; color: #3cff7f; font-size: 36px; box-shadow: inset 0 0 14px rgba(60, 255, 127, .45); }
.lg-brandmark { position: absolute; right: 18px; bottom: 16px; font-weight: 700; font-size: 15px; color: #c9ced8; }

.lg-strengths { position: absolute; left: 56px; right: 56px; bottom: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; font-size: 15px; }
.lg-strengths div { border-right: 1px solid rgba(255, 255, 255, .25); padding: 0 6px; }
.lg-strengths div:last-child { border-right: 0; }
.lg-strengths span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 20px; }

/* ---- right ---- */
.lg-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px; background: linear-gradient(160deg, #f6f9ff, #fff 55%); }
.lg-building { font-size: 70px; color: #9bbcf0; margin-bottom: 18px; }
.lg-card { width: 100%; max-width: 640px; background: #fff; border-radius: 22px; padding: 38px 40px 34px; box-shadow: 0 18px 50px rgba(15, 42, 92, .1); border: 1px solid #edf1f8; }
.lg-card h2 { text-align: center; font-size: 36px; margin-bottom: 8px; }
.lg-sub { text-align: center; color: #3b4a63; font-size: 18px; margin-bottom: 26px; }
.lg-card label { display: block; font-weight: 600; font-size: 17px; margin: 18px 0 8px; }
.lg-card label i { margin-right: 6px; color: #3b4a63; }
.lg-card label b { color: #e03131; }
.lg-card input[type=text], .lg-card input[type=password] { width: 100%; height: 56px; border: 1.5px solid #cfd8e6; border-radius: 12px; padding: 0 16px; font: inherit; font-size: 17px; background: #fff; color: #0f2a5c; }
.lg-card input:focus { outline: none; border-color: #1e6bff; box-shadow: 0 0 0 4px rgba(30, 107, 255, .12); }
.lg-hint { display: block; margin-top: 6px; color: #7a889e; font-size: 14px; }
.lg-pass { position: relative; }
.lg-pass input { padding-right: 52px; }
.lg-pass button { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 20px; color: #3b4a63; cursor: pointer; }
.lg-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.lg-row a { color: #1e6bff; font-weight: 600; text-decoration: none; }
.lg-row a:hover { text-decoration: underline; }
.lg-card .lg-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; cursor: pointer; }
.lg-check input { width: 22px; height: 22px; accent-color: #1e6bff; }
.lg-btn { width: 100%; height: 58px; border: 0; border-radius: 14px; font: inherit; font-size: 20px; font-weight: 700; color: #fff; background: linear-gradient(#1e6bff, #0a46d8); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 20px rgba(30, 107, 255, .35); }
.lg-btn:hover { filter: brightness(1.06); }
.lg-btn.lg-qr { background: #fff; color: #0f2a5c; border: 1.5px solid #1e6bff; box-shadow: none; height: 54px; font-size: 18px; }
.lg-btn.lg-qr:hover { background: #f1f6ff; filter: none; }
.lg-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: #0f2a5c; font-weight: 600; }
.lg-or::before, .lg-or::after { content: ''; flex: 1; border-top: 1px solid #d5deec; }
.lg-w3 { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.lg-w3-logo { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2f6bff, #0a2a8a); color: #fff; font-weight: 800; font-size: 26px; display: grid; place-items: center; }
.lg-w3 b { display: block; font-size: 22px; }
.lg-w3 small { color: #3b4a63; }

.lg-alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 15px; }
.lg-alert ul { padding-left: 18px; }
.lg-bad { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.lg-good { background: #eefaf2; color: #1a7f4b; border: 1px solid #c3e8d2; }

/* ---- QR window ---- */
.lg-modal { position: fixed; inset: 0; background: rgba(10, 30, 70, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.lg-modal[hidden] { display: none; }
.lg-modal-box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 28px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.lg-modal-box h3 { font-size: 24px; margin-bottom: 12px; }
.lg-x { position: absolute; right: 14px; top: 14px; border: 0; background: #eef2f9; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.lg-steps { text-align: left; margin: 0 0 16px 22px; color: #3b4a63; font-size: 15px; line-height: 1.7; }
.lg-qrbox { width: 240px; height: 240px; margin: 0 auto 10px; display: grid; place-items: center; border: 1px solid #e0e7f3; border-radius: 14px; padding: 10px; font-size: 30px; color: #9aa6b8; }
.lg-qrbox svg { width: 100%; height: 100%; }
.lg-qrbox.lg-dim { opacity: .25; }
.lg-qrnote { min-height: 24px; color: #3b4a63; margin-bottom: 12px; }

/* ---- phone approval page ---- */
.lg-phone { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #f6f9ff, #fff); }
.lg-phone .lg-card { max-width: 440px; text-align: center; }
.lg-phone .lg-card h2 { font-size: 26px; }
.lg-big { font-size: 60px; margin-bottom: 10px; }
.lg-who { background: #f3f7ff; border-radius: 12px; padding: 12px 16px; margin: 16px 0; text-align: left; font-size: 15px; }
.lg-who b { display: block; }

@media (max-width: 1100px) {
    .lg-wrap { grid-template-columns: 1fr; }
    .lg-brand { display: none; }
    .lg-main { min-height: 100vh; }
}
@media (max-width: 520px) { .lg-card { padding: 26px 20px; } .lg-card h2 { font-size: 28px; } }

/* ---- forgot / reset password ---- */
.lg-key { width: 96px; height: 96px; border-radius: 50%; background: #e8f0ff; display: grid; place-items: center; font-size: 42px; color: #1e6bff; }
.lg-info { display: flex; gap: 10px; align-items: flex-start; background: #eef4ff; border: 1px solid #d3e2ff; color: #1f4a9e; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 15px; }
.lg-gap { margin-top: 22px; }
.lg-back { display: block; text-align: center; margin-top: 20px; color: #1e6bff; font-weight: 600; text-decoration: none; }
.lg-back:hover { text-decoration: underline; }
.lg-card input[type=email] { width: 100%; height: 56px; border: 1.5px solid #cfd8e6; border-radius: 12px; padding: 0 16px; font: inherit; font-size: 17px; background: #fff; color: #0f2a5c; }
.lg-card input[type=email]:focus { outline: none; border-color: #1e6bff; box-shadow: 0 0 0 4px rgba(30, 107, 255, .12); }

/* ---- reset password: strength bar and match line ---- */
.lg-alert[hidden] { display: none; }
.rs-strength { display: flex; align-items: center; gap: 12px; margin-top: 8px; min-height: 20px; }
.rs-bar { flex: 1; height: 8px; border-radius: 6px; background: #e8edf3; overflow: hidden; }
.rs-bar i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .25s, background .25s; }
.rs-strength small { min-width: 110px; font-weight: 600; }
.rs-match { display: block; margin-top: 8px; min-height: 18px; font-weight: 600; }
