/* ==========================================================================
   Client area — লগইন (.lgn-): a rounded shell on a light-blue page. Left: the brand story over the artwork (headline, features, stats).
   Right: the white sign-in card. Standalone page — no client-area kit.
   Measurements follow the 1536 × 1024 design: shell 1488 × 954 with a 34px top margin, story 924 wide, card 564 wide.
   The artwork (login-bg.webp) sits inside the story panel, fading into the navy on the left so the text stays readable.
   View: resources/views/clientarea/auth/login.blade.php · Behaviour: public/backend/js/clientarea-login-page.js
   (The password-reset pages still use clientarea-login.css.)
   ========================================================================== */
* { box-sizing: border-box; }
.lgn { margin: 0; min-height: 100vh; font-family: 'Hind Siliguri', 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; color: #0b1840; background: #061a5a linear-gradient(135deg, #2570d8 0%, #4196f0 50%, #bcd6ff 100%); padding: 34px 24px; overflow-x: hidden; }
:where(.lgn h1, .lgn h2, .lgn p, .lgn ul) { margin: 0; padding: 0; }

.lgn-shell { display: grid; grid-template-columns: minmax(0, 924fr) minmax(500px, 564fr); max-width: 1488px; min-height: 954px; margin: 0 auto; border-radius: 30px; overflow: hidden; box-shadow: 0 24px 60px rgba(20, 60, 160, .22); }
@media (min-height: 1020px) { .lgn-shell { min-height: calc(100vh - 68px); } }

/* ---- story (left) ---- */
.lgn-story { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 50px 40px 42px 64px; color: #fff; background: radial-gradient(ellipse 60% 38% at 88% 0%, #4aa6ff 0%, rgba(74, 166, 255, 0) 100%), linear-gradient(135deg, #061a58 0%, #0a2f93 55%, #1450c8 100%); overflow: hidden; isolation: isolate; }
.lgn-story::before { content: ''; position: absolute; z-index: -1; right: -318px; top: 60px; width: 1075px; max-width: none; aspect-ratio: 3 / 2; background: url('../images/clientarea/login-bg.webp') center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, transparent 0, #000 9%, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, transparent 0, #000 9%, #000 86%, transparent 100%); mask-composite: intersect; }
.lgn-story::after { content: ''; position: absolute; z-index: -1; left: 0; top: 0; width: 60%; height: 100%; background: linear-gradient(90deg, rgba(5, 22, 80, .55), rgba(5, 22, 80, 0)); pointer-events: none; }
.lgn-brand { display: flex; flex-direction: column; gap: 4px; }
.lgn-bw { font-size: 78px; font-weight: 800; letter-spacing: -2px; line-height: .95; color: #fff; } .lgn-bw span { background: linear-gradient(90deg, #15c8ff, #1565f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lgn-bw--dark { color: #0b1840; } .lgn-bw--dark span { background: none; color: #0b44d6; }
.lgn-brand small { font-size: 17px; color: #fff; }
.lgn-hl { margin-top: 38px; font-size: 50px; font-weight: 700; line-height: 1.14; letter-spacing: -.3px; } .lgn-hl em { font-style: normal; color: #19b4ff; }
.lgn-lead { max-width: 376px; margin-top: 18px; font-size: 19px; line-height: 1.5; color: #f1f6ff; }
.lgn-feat { list-style: none; display: grid; gap: 14px; width: 330px; margin-top: 20px; position: relative; z-index: 2; }
.lgn-feat li { display: flex; align-items: center; gap: 16px; }
.lgn-feat li > span { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #0e3aa4; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; color: #fff; font-size: 24px; } .lgn-feat li > span i { font-size: 24px; }
.lgn-feat b { display: block; font-size: 22px; font-weight: 600; line-height: 1.25; } .lgn-feat small { display: block; margin-top: 1px; font-size: 17px; color: #e6efff; }
.lgn-stats { position: absolute; left: 319px; bottom: 42px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 565px; padding: 24px 8px 22px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 18px; background: rgba(6, 36, 120, .5); backdrop-filter: blur(5px); z-index: 2; }
.lgn-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 10px; text-align: center; } .lgn-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .22); }
.lgn-stats i { font-size: 30px; margin-bottom: 8px; } .lgn-stats b { font-size: 30px; font-weight: 600; line-height: 1.2; } .lgn-stats small { font-size: 17px; color: #fff; }

/* ---- card (right) ---- */
.lgn-card { position: relative; display: flex; align-items: flex-start; background: #fff; min-width: 0; }

.lgn-inner { width: 100%; max-width: 564px; margin: 0 auto; padding: 100px 40px 40px 48px; }
.lgn-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 29px; text-align: center; } .lgn-logo .lgn-bw { font-size: 77px; } .lgn-logo small { font-size: 17px; color: #0b1840; }
.lgn-title { margin-bottom: 4px; text-align: center; font-size: 32px; font-weight: 700; line-height: 1.3; }
.lgn-sub { margin-bottom: 38px; text-align: center; font-size: 19px; color: #2d3a5c; }

.lgn-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.55; } .lgn-note i { margin-top: 3px; }
.lgn-note--error { background: #fde8ea; color: #b4202f; border: 1px solid #f6c7cc; } .lgn-note--ok { background: #def6e8; color: #137a45; border: 1px solid #b7e6cb; } .lgn-note.is-hidden { display: none; }

.lgn-form { display: grid; gap: 22px; }
.lgn-fld { display: flex; align-items: center; gap: 18px; min-height: 80px; padding: 8px 22px; border: 1.5px solid #dfe7f5; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lgn-fld:focus-within { border-color: #1f6fe8; box-shadow: 0 0 0 4px rgba(31, 111, 232, .12); } .lgn-fld.is-bad { border-color: #e5384a; }
.lgn-fi { flex: 0 0 auto; width: 28px; text-align: center; font-size: 24px; color: #2f3b5a; }
.lgn-fb { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.lgn-fb label { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.3; color: #0b1840; } .lgn-sum { margin-left: 4px; color: #0b57d0; }
.lgn-fb input { width: 100%; height: 30px; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; color: #0b1840; } .lgn-fb input::placeholder { color: #5f6b86; }
.lgn-fld--sum { min-height: 68px; } .lgn-fld--sum .lgn-fb input { -moz-appearance: textfield; } .lgn-fld--sum input::-webkit-outer-spin-button, .lgn-fld--sum input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lgn-eye { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #2f3b5a; font-size: 22px; cursor: pointer; } .lgn-eye:hover { background: #eef4ff; color: #1f6fe8; }
.lgn-err { margin: -12px 4px 0; font-size: 13.5px; color: #d52f43; }

.lgn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lgn-remember { display: inline-flex; align-items: center; gap: 14px; margin: 0; font-size: 18px; cursor: pointer; }
.lgn-remember input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 28px; height: 28px; margin: 0; border: 1.5px solid #b9c5de; border-radius: 6px; background: #fff; cursor: pointer; display: inline-grid; place-content: center; }
.lgn-remember input::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 15px; color: #fff; transform: scale(0); transition: transform .12s; }
.lgn-remember input:checked { background: #0b57f0; border-color: #0b57f0; } .lgn-remember input:checked::after { transform: scale(1); } .lgn-remember input:focus-visible { outline: 3px solid rgba(31, 111, 232, .35); outline-offset: 2px; }
.lgn-forgot { font-size: 18px; font-weight: 500; color: #0b57d0; text-decoration: none; } .lgn-forgot:hover { text-decoration: underline; }
.lgn-btn { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 70px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #0b5ff2, #1a7bf5); color: #fff; font: inherit; font-size: 21px; font-weight: 500; cursor: pointer; box-shadow: 0 8px 20px rgba(11, 95, 242, .28); transition: filter .15s, transform .1s; } .lgn-btn i { font-size: 28px; }
.lgn-btn:hover { filter: brightness(.94); } .lgn-btn:active { transform: translateY(1px); } .lgn-btn:disabled { opacity: .75; cursor: progress; }

.lgn-or { display: flex; align-items: center; gap: 18px; margin: 30px 0 22px; color: #44506f; font-size: 17px; } .lgn-or::before, .lgn-or::after { content: ''; flex: 1; height: 1px; background: #e0e7f3; }
.lgn-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .lgn-social .lgn-sb:only-child { grid-column: 1 / -1; }
.lgn-sb { display: flex; align-items: center; justify-content: center; gap: 12px; height: 62px; border: 1.5px solid #e0e7f3; border-radius: 10px; background: #fff; color: #0b1840; font-size: 18px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; } .lgn-sb:hover { background: #f5f8ff; border-color: #b9ccef; color: #0b1840; }
.lgn-foot { display: grid; gap: 4px; margin-top: 24px; text-align: center; font-size: 15px; color: #3d4a6b; } .lgn-foot a { color: #0b57d0; font-weight: 600; text-decoration: none; } .lgn-foot a:hover { text-decoration: underline; }

@media (max-width: 1399px) { .lgn { padding: 20px; } .lgn-story { padding-left: 44px; } .lgn-stats { left: 260px; width: 520px; } .lgn-inner { padding-left: 34px; padding-right: 30px; } .lgn-hl { font-size: 42px; } }
@media (max-width: 1199px) { .lgn-stats { display: none; } .lgn-story::before { opacity: .6; } }
@media (max-width: 991px) {
    .lgn { background: #cfe0ff; padding: 0; }
    .lgn-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 0; box-shadow: none; }
    .lgn-story { padding: 28px 20px 26px; } .lgn-story::before { right: -280px; top: auto; bottom: -40px; width: 900px; opacity: .3; }
    .lgn-bw { font-size: 46px; } .lgn-hl { margin-top: 18px; font-size: 28px; } .lgn-hl br { display: none; } .lgn-lead, .lgn-feat { display: none; }
    .lgn-inner { padding: 36px 20px 30px; } .lgn-logo { margin-bottom: 30px; } .lgn-logo .lgn-bw { font-size: 52px; } .lgn-title { font-size: 26px; } .lgn-sub { margin-bottom: 30px; font-size: 17px; }
}
@media (max-width: 479px) { .lgn-fld { min-height: 72px; padding: 6px 14px; gap: 12px; } .lgn-btn { height: 60px; font-size: 18px; } .lgn-row { gap: 10px; } .lgn-remember, .lgn-forgot { font-size: 15.5px; } .lgn-social { grid-template-columns: minmax(0, 1fr); } 
/* ---- password pages (forgot / set a new one): a shorter card with a round icon on top ---- */
.lgn-inner--pw { padding-top: 130px; }
.lgn-key { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%; background: #e8f0ff; color: #0b57f0; box-shadow: 0 0 0 10px #f2f6ff; } .lgn-key i { font-size: 32px; }
.lgn-inner--pw .lgn-sub { max-width: 440px; margin-left: auto; margin-right: auto; margin-bottom: 36px; line-height: 1.6; }
.lgn-inner--pw .lgn-sub strong { color: #0b1840; overflow-wrap: anywhere; }
.lgn-rules { list-style: none; display: grid; gap: 10px; margin: 2px 0 4px; padding: 16px 18px; border-radius: 12px; background: #f4f7fd; font-size: 16px; color: #3d4a6b; }
.lgn-rules li { display: flex; align-items: center; gap: 12px; } .lgn-rules i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #cfd8ea; color: #fff; font-size: 9px; transition: background .15s; }
.lgn-rules li.is-met { color: #0b1840; } .lgn-rules li.is-met i { background: #17b26a; font-size: 10px; }
@media (max-width: 991px) { .lgn-inner--pw { padding-top: 40px; } .lgn-key { width: 70px; height: 70px; margin-bottom: 20px; } .lgn-inner--pw .lgn-sub { margin-bottom: 26px; } }
