/* ==========================================================================
   W3 SMS - sign in (v3)

   Loaded after auth.css, which the registration and password pages still use
   untouched: everything here is scoped to .lv3 and named lv3-*.

   A split screen drawn on one fixed frame in the proportions of the design
   (1716 x 917). The frame's font-size is 1/57th of its height, so every size
   below is written in em - the design's pixels divided by 16 - and the whole
   page scales together instead of reflowing. Under 1200px the frame is let go
   and the form simply stands on its own.
   ========================================================================== */

.lv3 {
    --l-navy:  #0b2559;
    --l-ink:   #14305f;
    --l-mute:  #5b6f94;
    --l-blue:  #1a62f0;
    --l-line:  #d9e5f6;

    position: relative;
    display: flex; align-items: center; justify-content: flex-end;
    min-height: 100vh;
    font-family: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--l-ink);
    background: linear-gradient(90deg, #f3f8ff 0, #e6f0ff 52%, #4d93ff 66%, #1d5fe0 100%);
    overflow-x: clip;
}
.lv3 *, .lv3 *::before, .lv3 *::after { box-sizing: border-box; }
.lv3 h1, .lv3 h2, .lv3 h3, .lv3 p, .lv3 ul { margin: 0; padding: 0; }
.lv3 ul { list-style: none; }
.lv3 a { text-decoration: none; }

/* ---- the frame ---- */
.lv3-frame {
    --H: min(53.44vw, 100vh);
    position: relative; flex: 0 0 auto;
    width: calc(var(--H) * 1.8713); min-height: var(--H);
    font-size: calc(var(--H) * .01745);
}

.lv3-scene { position: absolute; left: 0; top: 0; width: 100%; height: var(--H); pointer-events: none; }
.lv3-scene__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* the uploaded background picture (public/web/img/login/bg.*), if there is one:
   laid out at its own proportions, its phone where the design puts the phone */
.lv3-scene__bg { position: absolute; left: -39.4em; top: 0; width: 111.1em; height: 57.3em; }
.lv3-scene__bg img { display: block; width: 100%; height: 100%; object-fit: fill; }
.lv3-scene__bg .lv3-stage__ui { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Left: the pitch
   -------------------------------------------------------------------------- */

.lv3-pitch { position: absolute; left: 6.25em; top: 3.4em; width: 44em; }

.lv3-logo { display: inline-block; }
.lv3-logo img { display: block; height: 3.5em; width: auto; }

.lv3-copy { margin-top: 3.3em; }
.lv3-copy h1 span { display: block; }
.lv3-copy h1 { font-size: 2.85em; font-weight: 800; line-height: 1.16; letter-spacing: -.02em; color: var(--l-navy); }
.lv3-copy h1 em { font-style: normal; color: var(--l-blue); }
.lv3-copy > p { max-width: 24em; min-height: 2.9em; margin-top: .7em; font-size: 1.2em; line-height: 1.45; color: var(--l-mute); }

.lv3-points { display: grid; gap: .12em; width: 24em; margin-top: 2em; }
.lv3-points li {
    display: flex; align-items: center; gap: 1.1em;
    height: 5em; padding: 0 1.25em;
    border-radius: .6em;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 .4em 1.2em rgba(18, 63, 160, .05);
}
.lv3-points__icon { flex: 0 0 3.1em; width: 3.1em; height: 3.1em; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2em; color: #fff; }
.lv3-points__icon--b { background: linear-gradient(145deg, #7cc4ff, #3a9bf2); }
.lv3-points__icon--g { background: linear-gradient(145deg, #6fdca6, #19a56a); }
.lv3-points__icon--p { background: linear-gradient(145deg, #a587ff, #6b45e6); }
.lv3-points__icon--o { background: linear-gradient(145deg, #ffbe4a, #f28c14); }
.lv3-points strong { display: block; font-size: 1.18em; font-weight: 700; line-height: 1.2; color: var(--l-navy); }
.lv3-points small { display: block; margin-top: .15em; font-size: .88em; color: var(--l-mute); }

.lv3-stats {
    position: absolute; left: 0; top: 43.2em;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    width: 41.25em; height: 8.75em;
    border-radius: 1em;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 .6em 1.8em rgba(18, 63, 160, .07);
}
.lv3-stats li { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 .6em; text-align: center; }
.lv3-stats li + li { border-left: 1px solid var(--l-line); }
.lv3-stats i { margin-bottom: .25em; font-size: 1.9em; color: var(--l-blue); }
.lv3-stats b { font-size: 1.6em; font-weight: 800; line-height: 1.2; color: var(--l-navy); }
.lv3-stats span { margin-top: .15em; font-size: .88em; color: var(--l-mute); }

/* --------------------------------------------------------------------------
   Right: the form card
   -------------------------------------------------------------------------- */

.lv3-card {
    position: relative;
    display: flex; flex-direction: column;
    width: 40em; min-height: 52.8em;
    margin: 2.6em 0 1.9em 61.9em;
    padding: 3.4em 5.5em 1.4em;
    border-radius: 1.2em;
    background: #fff;
    box-shadow: 0 2em 4.5em rgba(18, 63, 160, .16);
}

.lv3-card__head { margin-bottom: 1.6em; text-align: center; }
.lv3-card__logo { display: inline-block; margin-bottom: 1em; }
.lv3-card__logo img { display: block; height: 3.6em; width: auto; }
.lv3-card h2 { font-size: 1.75em; font-weight: 800; line-height: 1.25; color: var(--l-navy); }
.lv3-card__head > p { max-width: 21em; margin: .6em auto 0; font-size: 1em; line-height: 1.5; color: var(--l-mute); }

.lv3 .auth-reason { display: inline-flex; align-items: center; gap: .5em; margin: .7em 0 0; padding: .45em .9em; border-radius: 999px; background: #e9f2ff; font-size: .84em; font-weight: 600; color: #1b4aa8; }

.lv3-card form { display: flex; flex-direction: column; }

/* ---- the fields ---- */
.lv3 .auth-field { margin-bottom: .95em; }
.lv3 .auth-field label { margin-bottom: .45em; font-size: .94em; font-weight: 700; color: var(--l-navy); }
.lv3 .auth-field .input-wrap > i.field-icon { left: 1em; font-size: .95em; color: #4a5d82; }
.lv3 .auth-field input {
    height: 3.1em; padding: 0 2.8em;
    border: 1px solid var(--l-line); border-radius: .55em;
    background: #f4f8fe;
    font: inherit; font-size: .98em; color: var(--l-navy);
}
.lv3 .auth-field input::placeholder { color: #8396b4; }
.lv3 .auth-field input:focus { border-color: #38a1ff; background: #fff; box-shadow: 0 0 0 .22em rgba(56, 161, 255, .22); }
.lv3 .auth-field .toggle-pass { right: .5em; padding: .5em; color: #4a5d82; }
.lv3 .auth-field .toggle-pass:hover { color: var(--l-blue); }

.lv3 .auth-actions { margin: -.15em 0 1.05em; }
.lv3 .auth-checkbox { gap: .6em; font-size: .94em; color: var(--l-ink); }
.lv3 .auth-checkbox input { width: 1.2em; height: 1.2em; accent-color: var(--l-blue); }
.lv3 .auth-link { font-size: .94em; font-weight: 700; color: var(--l-blue); }
.lv3 .auth-link:hover { color: #0b3fc4; }

/* the sum */
.lv3 .auth-captcha { height: 3.1em; margin-bottom: .5em; padding: 0 1em; border: 1px solid var(--l-line); border-radius: .55em; background: #f4f8fe; }
.lv3 .auth-captcha__q { font-size: 1.05em; font-weight: 800; color: var(--l-navy); }
.lv3 .auth-captcha__new { font-size: 1.05em; color: var(--l-blue); }

.lv3 .auth-submit {
    height: 3.25em; margin-top: .35em; padding: 0 1em;
    border: 0; border-radius: .55em;
    background: linear-gradient(90deg, #0a3f9e 0%, #0b66f0 55%, #12a8ff 100%);
    box-shadow: 0 .8em 1.6em rgba(11, 91, 232, .3);
    font-size: 1.02em; font-weight: 800; color: #fff;
}
.lv3 .auth-submit:hover { transform: translateY(-2px); box-shadow: 0 1em 2em rgba(11, 91, 232, .4); filter: brightness(1.06); }

.lv3 .auth-alt { margin: 1.4em 0 0; font-size: .94em; color: var(--l-mute); text-align: center; }

/* back to home, copyright, developer credit: pushed to the foot of the card */
.lv3-card__foot { margin-top: auto; padding-top: 1.4em; }
.lv3-card__foot .auth-page__foot { margin: 0; padding-top: 1em; border-top: 1px solid #edf2fb; justify-content: center; font-size: .8em; }
.lv3-card__foot .auth-page__dev { margin: .5em 0 0; font-size: .76em; }

/* --------------------------------------------------------------------------
   Under 1200px: just the form
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .lv3 { justify-content: center; padding: 20px 16px; background: linear-gradient(135deg, #f4f8ff, #e4efff); }
    .lv3-frame { width: 100%; max-width: 520px; height: auto; font-size: 16px; }
    .lv3-scene, .lv3-pitch { display: none; }
    .lv3-card { width: 100%; min-height: 0; margin: 0; padding: 32px 28px 22px; border-radius: 18px; }
    .lv3-card h2 { font-size: 1.6rem; }
}

@media (max-width: 575.98px) {
    .lv3 { padding: 0; background: #fff; align-items: flex-start; }
    .lv3-card { border-radius: 0; box-shadow: none; padding: 28px 20px 22px; }
}

/* --------------------------------------------------------------------------
   Registration: the same card, with more in it
   -------------------------------------------------------------------------- */

.lv3-card--tall { padding-top: 2.6em; padding-bottom: 1.2em; }
.lv3-card--tall .lv3-card__head { margin-bottom: 1.1em; }
.lv3-card--tall .lv3-card__logo img { height: 3.1em; }

.lv3 .auth-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 .9em; }
.lv3 .auth-row .auth-field input { padding-left: 2.5em; padding-right: 2.3em; font-size: .92em; }
.lv3 .auth-row .auth-field .input-wrap > i.field-icon { left: .85em; }
.lv3 .auth-hint { display: block; margin-top: .4em; font-size: .78em; line-height: 1.45; color: #7889a8; }
.lv3 .auth-change { margin-top: .4em; font-size: .8em; font-weight: 700; color: var(--l-blue); }

/* the terms line */
.lv3 form > .auth-checkbox { align-items: flex-start; margin: .1em 0 1em; font-size: .86em; line-height: 1.5; }
.lv3 form > .auth-checkbox input { margin-top: .15em; flex: 0 0 auto; }

.lv3 .auth-otp { margin-top: .2em; }
.lv3 .auth-otp label small { margin-left: .5em; font-weight: 500; color: #7889a8; }
.lv3 .auth-otp__meta { margin-top: .5em; font-size: .86em; }
.lv3 .auth-countdown strong { color: var(--l-navy); }
.lv3 .auth-field input.is-locked { background: #eaf0fa; color: #4a5d82; }

.lv3 .auth-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.2em; margin: 1.1em 0 0; padding: 0; border: 0; }
.lv3 .auth-trust li { display: inline-flex; align-items: center; gap: .45em; font-size: .84em; color: var(--l-mute); }
.lv3 .auth-trust i { color: #17a96b; font-size: .9em; }

@media (max-width: 575.98px) {
    .lv3 .auth-row { grid-template-columns: minmax(0, 1fr); }
}

/* the countdown and resend link under the code field (forgot password) */
.lv3 .auth-otp-meta { display: flex; align-items: center; justify-content: space-between; gap: .8em; margin-top: .5em; font-size: .86em; }
.lv3 .auth-otp-meta > span { color: #7889a8; font-variant-numeric: tabular-nums; }
