/* ==========================================================================
   Login page — light design (visual only).
   Loaded only by resources/views/auth/login.blade.php. No form, field or
   script changes: the form keeps its action, names, IDs and login.js hooks.
   ========================================================================== */
body.lm-body {
    --lm-orange: #f7801f;
    --lm-orange-2: #ffb15a;
    --lm-orange-deep: #ef6c12;
    --lm-ink: #1f2430;
    --lm-text: #2c3140;
    --lm-muted: #6a7080;
    --lm-field: #f5f6fa;
    --lm-line: #e3e6ef;
    --lm-ease: cubic-bezier(.22, .61, .36, 1);
    margin: 0;
    min-height: 100vh;
    color: var(--lm-text);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    /* light lavender page with soft orange shapes */
    background:
        radial-gradient(circle at 50% -6%, rgba(255, 177, 110, .55) 0, rgba(255, 177, 110, .35) 90px, rgba(255, 177, 110, 0) 160px),
        radial-gradient(circle at 101% 15%, rgba(247, 128, 31, .75) 0, rgba(255, 160, 80, .45) 60px, rgba(255, 160, 80, 0) 120px),
        radial-gradient(circle at -2% 104%, rgba(247, 128, 31, .7) 0, rgba(255, 170, 100, .4) 90px, rgba(255, 170, 100, 0) 150px),
        radial-gradient(circle at 104% 108%, rgba(247, 128, 31, .85) 0, rgba(255, 150, 70, .5) 150px, rgba(255, 150, 70, 0) 230px),
        linear-gradient(160deg, #f6f6fb 0%, #eceef7 55%, #f4f2f8 100%) !important;
}
body.lm-body *, body.lm-body *::before, body.lm-body *::after { box-sizing: border-box; }
/* subtle blurred office behind everything */
body.lm-body::before {
    content: ""; position: fixed; inset: -20px; z-index: 0; pointer-events: none;
    background: url("../images/modern-ui/auth-banner-photo.jpg") center / cover no-repeat;
    filter: blur(14px) saturate(.6); opacity: .16;
}

.lm-page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    padding: 22px 7.5vw 18px;
}

/* orange dot patterns in the corners */
.lm-dots {
    position: absolute; width: 56px; height: 52px; pointer-events: none; opacity: .9;
    background-image: radial-gradient(var(--lm-orange) 2.4px, transparent 2.8px);
    background-size: 13px 13px;
}
.lm-dots--tl { left: 2.4vw; top: 15%; }
.lm-dots--tr { right: 2.4vw; top: 15%; width: 64px; height: 64px; }
.lm-dots--bl { left: 6.5vw; bottom: 9%; }
.lm-dots--br { right: 2.4vw; bottom: 17%; }

/* ---------- Header ---------- */
.lm-top { width: 100%; max-width: 1240px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lm-top-logo img { height: 48px; width: auto; display: block; }
.lm-tagline {
    position: relative; font-size: 17px; font-weight: 500; color: var(--lm-ink); letter-spacing: .01em; padding-bottom: 8px;
}
.lm-tagline span { color: var(--lm-orange); margin: 0 4px; }
.lm-tagline::after {
    content: ""; position: absolute; right: 0; bottom: 0; width: 66%; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, rgba(247, 128, 31, 0), var(--lm-orange) 40%, var(--lm-orange-deep));
    transform: rotate(-1.5deg);
}

/* ---------- Card ---------- */
.lm-card {
    width: 100%; max-width: 1100px;
    display: grid; grid-template-columns: minmax(0, 50.7%) minmax(0, 49.3%);
    background: #fff; border-radius: 22px;
    box-shadow: 0 2px 6px rgba(40, 44, 70, .05), 0 30px 70px -30px rgba(40, 44, 70, .35);
    overflow: hidden;
    animation: lm-rise .6s var(--lm-ease) both;
}

/* Left welcome panel (image: office + 3D person, with orange curves) */
.lm-left {
    position: relative; min-height: 560px;
    background: #2b2a30 url("../images/modern-ui/login-left-art.jpg?v=43") center / cover no-repeat;
    border-radius: 22px 0 0 22px;
    color: #fff;
}
/* no colour overlay: the photo shows in its natural colours */
.lm-left-copy { position: relative; padding: 9% 9% 0 16.5%; }
.lm-left h1 { margin: 0; color: #fff; font-size: 44px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; text-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.lm-left h1 em { font-style: normal; color: var(--lm-orange-2); background: linear-gradient(90deg, #ff9a3c, #ffb766); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lm-left p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: #fff; font-weight: 500; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.lm-feats { display: flex; gap: 14px; margin-top: 24px; }
.lm-feat {
    position: relative; flex: 0 0 auto; width: 108px; min-height: 92px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
    padding: 12px 8px; border-radius: 12px;
    background: rgba(72, 79, 100, .45); border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .3s var(--lm-ease), border-color .3s, background .3s;
}
.lm-feat + .lm-feat::before { content: ""; position: absolute; left: -8px; top: 30%; height: 40%; width: 1px; background: rgba(255, 255, 255, .35); }
.lm-feat i { font-size: 30px; line-height: 1; color: #ffa23e; filter: drop-shadow(0 4px 10px rgba(247, 128, 31, .45)); }
.lm-feat span { font-size: 12.5px; line-height: 1.3; color: #fff; font-weight: 500; }
.lm-feat:hover { transform: translateY(-3px); border-color: rgba(255, 162, 62, .5); background: rgba(72, 79, 100, .58); }

/* Right form panel */
.lm-right { display: flex; flex-direction: column; align-items: center; padding: 34px 9% 30px; }
.lm-badge {
    width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    box-shadow: 0 0 0 10px rgba(255, 196, 150, .22), 0 0 0 20px rgba(255, 196, 150, .1), 0 14px 30px -10px rgba(247, 128, 31, .45);
    margin: 6px 0 22px;
    animation: lm-float 6s ease-in-out infinite;
}
.lm-badge img { width: 52px; height: auto; }
.lm-right h2 { margin: 0; font-size: 32px; font-weight: 700; color: var(--lm-ink); letter-spacing: -.01em; }
.lm-right h2 em { font-style: normal; color: var(--lm-orange); }
.lm-sub { margin: 8px 0 0; font-size: 15px; color: var(--lm-muted); text-align: center; }
.lm-rule { display: block; width: 92px; height: 4px; border-radius: 4px; margin: 14px 0 26px; background: linear-gradient(90deg, var(--lm-orange-deep), var(--lm-orange-2)); }
.lm-right form, .lm-right .alert { width: 100%; }
.lm-right .alert { border-radius: 10px; font-size: 14px; padding: 10px 14px; }
.lm-right .alert-danger { border: 1px solid #ffd6d6; border-left: 4px solid #e5484d; background: #fff5f5; color: #9b1c1f; }
.lm-right .alert-success { border: 1px solid #c9eed8; border-left: 4px solid #22a55a; background: #f1fbf5; color: #135c33; }
.lm-right .alert ul { padding-left: 18px; }

/* fields: one continuous rounded box (icon + input + eye) */
.lm-right .mb-3 { margin-bottom: 16px !important; }
.lm-right .input-group {
    flex-wrap: nowrap; align-items: stretch;
    border: 1px solid var(--lm-line); border-radius: 10px; background: var(--lm-field);
    transition: border-color .2s, box-shadow .25s var(--lm-ease), background .2s;
}
.lm-right .input-group > .lm-ico {
    display: flex; align-items: center; justify-content: center; width: 52px; flex: 0 0 52px;
    border-right: 1px solid var(--lm-line); color: #2a2f3b; font-size: 21px; transition: color .2s;
}
.lm-right .input-group > .form-control {
    height: 50px; border: 0 !important; background: transparent !important; box-shadow: none !important;
    padding: 0 16px; font-size: 15px; color: var(--lm-text); border-radius: 0 10px 10px 0 !important;
}
.lm-right .input-group > .form-control:not(:last-child) { border-radius: 0 !important; }
.lm-right .input-group > .form-control::placeholder { color: #737a8a; }
.lm-right .input-group > .btn {
    width: 54px; flex: 0 0 54px; padding: 0; border: 0; border-left: 1px solid var(--lm-line) !important;
    border-radius: 0 10px 10px 0 !important; background: #eef0f6; color: #2a2f3b; font-size: 21px;
    display: flex; align-items: center; justify-content: center; transition: color .2s, background .2s;
}
.lm-right .input-group > .btn:hover { color: var(--lm-orange); background: #e8eaf2; }
.lm-right .input-group:hover { border-color: #cfd3df; }
.lm-right .input-group:focus-within,
.lm-right .input-group.focused { border-color: var(--lm-orange); background: #fff; box-shadow: 0 0 0 4px rgba(247, 128, 31, .14); border-radius: 10px; }
.lm-right .input-group:focus-within > .lm-ico { color: var(--lm-orange); }
.lm-right .input-group:has(.is-invalid) { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.lm-right .input-group:has(.is-invalid) > .lm-ico { color: #e5484d; }
.lm-right .is-invalid { background-image: none !important; }
.lm-right .input-group > .invalid-feedback { position: absolute; top: 100%; left: 0; margin-top: 5px; font-size: 13px; }
.lm-right .mb-3:has(.is-invalid) { margin-bottom: 32px !important; }

/* remember + forgot */
.lm-row { margin: 4px 0 20px; }
.lm-right .form-check { display: flex; align-items: center; gap: 10px; padding-left: 0; }
.lm-right .form-check-input { float: none; margin: 0; width: 19px; height: 19px; border-radius: 4px; border: 1.5px solid #bcc1cd; cursor: pointer; }
.lm-right .form-check-input:checked { background-color: var(--lm-orange); border-color: var(--lm-orange); }
.lm-right .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(247, 128, 31, .2); border-color: var(--lm-orange); }
.lm-right .form-check-label { font-size: 15px; color: var(--lm-text); cursor: pointer; }
.lm-forgot { color: var(--lm-orange-deep) !important; font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s; }
.lm-forgot:hover { color: #c8560a !important; text-decoration: underline; }

/* Log In button: orange gradient pill with arrow bubble */
.lm-right .lm-submit {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    height: 56px; border: 0; border-radius: 50px;
    background: linear-gradient(90deg, #f7701a 0%, #fb8e33 50%, #ffb15a 100%) !important;
    color: #fff !important; font-size: 20px; font-weight: 600; letter-spacing: .01em;
    box-shadow: 0 14px 28px -14px rgba(239, 108, 18, .9), 0 2px 0 rgba(255, 255, 255, .25) inset;
    transition: transform .2s var(--lm-ease), box-shadow .25s var(--lm-ease), filter .2s;
}
.lm-right .lm-submit > i { font-size: 24px; }
.lm-submit-arrow {
    position: absolute; right: 12px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .28); font-size: 20px; transition: transform .3s var(--lm-ease), background .3s;
}
.lm-right .lm-submit::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg); transition: left .7s var(--lm-ease);
}
.lm-right .lm-submit:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 18px 32px -14px rgba(239, 108, 18, 1), 0 2px 0 rgba(255, 255, 255, .3) inset; }
.lm-right .lm-submit:hover::after { left: 120%; }
.lm-right .lm-submit:hover .lm-submit-arrow { transform: translateX(3px); background: rgba(255, 255, 255, .38); }
.lm-right .lm-submit:active { transform: scale(.985); }
.lm-right .lm-submit:focus-visible { outline: 3px solid rgba(247, 128, 31, .45); outline-offset: 3px; }

/* OR + Register */
.lm-or { width: 100%; display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; }
.lm-or::before, .lm-or::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, transparent, #dfe2ea 30%, #dfe2ea 70%, transparent); }
.lm-or span { padding: 4px 12px; border-radius: 50px; background: #f1f2f7; font-size: 12px; font-weight: 600; color: var(--lm-ink); letter-spacing: .04em; }
.lm-register {
    width: 100%; height: 50px; border-radius: 50px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 1.5px solid #d9dce5; background: #fff; color: var(--lm-ink) !important;
    font-size: 16px; font-weight: 500; text-decoration: none !important;
    transition: border-color .2s, color .2s, background .2s, transform .2s var(--lm-ease), box-shadow .25s;
}
.lm-register i { font-size: 22px; }
.lm-register:hover { border-color: var(--lm-orange); color: var(--lm-orange-deep) !important; background: #fff8f2; transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(247, 128, 31, .7); }

/* Footer */
.lm-foot { margin-top: auto; padding-top: 22px; font-size: 14px; color: #3d4250; text-align: center; }

/* Motion */
@keyframes lm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lm-card, .lm-badge { animation: none !important; } }

/* ---------- Shorter laptop screens ---------- */
@media (min-width: 992px) and (max-height: 859px) {
    .lm-page { padding-top: 14px; padding-bottom: 12px; }
    .lm-top { margin-bottom: 12px; }
    .lm-top-logo img { height: 40px; }
    .lm-left { min-height: 500px; }
    .lm-right { padding: 24px 8% 22px; }
    .lm-badge { width: 76px; height: 76px; margin: 4px 0 16px; }
    .lm-badge img { width: 44px; }
    .lm-right h2 { font-size: 27px; }
    .lm-rule { margin: 10px 0 18px; }
    .lm-right .input-group > .form-control { height: 44px; }
    .lm-right .lm-submit { height: 50px; font-size: 18px; }
    .lm-row { margin-bottom: 16px; }
    .lm-or { margin: 14px 0 12px; }
    .lm-register { height: 44px; }
    .lm-foot { padding-top: 12px; font-size: 13px; }
    .lm-left h1 { font-size: 38px; }
    .lm-left p { font-size: 16px; }
    .lm-feat { width: 96px; min-height: 82px; }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 1199.98px) {
    .lm-page { padding-left: 4vw; padding-right: 4vw; }
    .lm-left h1 { font-size: 38px; }
    .lm-left-copy { padding-left: 11%; }
}
@media (max-width: 991.98px) {
    .lm-card { grid-template-columns: 1fr; max-width: 640px; }
    .lm-left { min-height: 420px; border-radius: 22px 22px 0 0; background-position: center 70%; }
    .lm-left-copy { padding: 34px 32px 0; }
    .lm-right { padding: 30px 32px 30px; }
    .lm-dots { display: none; }
}
@media (max-width: 575.98px) {
    .lm-page { padding: 14px 12px 14px; }
    .lm-top { margin-bottom: 12px; }
    .lm-top-logo img { height: 38px; }
    .lm-tagline { display: none; }
    .lm-card { border-radius: 18px; }
    .lm-left { min-height: 360px; border-radius: 18px 18px 0 0; }
    .lm-left-copy { padding: 24px 20px 0; }
    .lm-left h1 { font-size: 30px; }
    .lm-left p { font-size: 15px; }
    .lm-feats { gap: 10px; }
    .lm-feat { width: auto; flex: 1 1 0; min-height: 76px; padding: 10px 4px; }
    .lm-feat i { font-size: 24px; }
    .lm-feat span { font-size: 11.5px; }
    .lm-right { padding: 24px 18px 24px; }
    .lm-right h2 { font-size: 26px; }
    .lm-right .input-group > .form-control { font-size: 16px; } /* avoids iOS zoom */
    .lm-right .lm-submit { height: 52px; font-size: 18px; }
}

/* Card centred vertically; a little larger on wide screens; feature labels on one line */
.lm-card { margin-top: auto; margin-bottom: auto; max-width: min(1180px, 86vw); }
.lm-foot { margin-top: 0; }
.lm-top { max-width: min(1320px, 92vw); }
.lm-feat { width: auto; min-width: 104px; padding: 12px 14px; }
.lm-feat span { white-space: nowrap; }
@media (min-width: 1600px) and (min-height: 860px) { .lm-left { min-height: 610px; } .lm-right { padding-top: 44px; } }
@media (max-width: 991.98px) { .lm-card { max-width: 640px; } }
@media (max-width: 575.98px) { .lm-feat { min-width: 0; padding: 10px 6px; } .lm-feat span { white-space: normal; } }

/* Welcome panel sizing for the office illustration (person stays below the feature cards) */
@media (min-width: 992px) and (max-height: 859px) {
    .lm-left { min-height: min(600px, calc(100vh - 168px)); }
    .lm-left-copy { padding-top: 7%; }
    .lm-feats { margin-top: 18px; }
    .lm-feat { min-height: 76px; }
}
@media (max-width: 991.98px) {
    .lm-left { min-height: 0; aspect-ratio: 1308 / 1445; background-position: center; }
}
@media (max-width: 575.98px) {
    .lm-left { aspect-ratio: auto; min-height: 500px; }
}

/* ==========================================================================
   Polish pass (visual only)
   ========================================================================== */

/* Original company logo file (full logo.txt, unmodified) has built-in empty space:
   sized and offset so it appears at the same size and position as before. */
.lm-top-logo img { height: 72px; margin: -11px 0 -14px -16px; }
@media (min-width: 992px) and (max-height: 859px) { .lm-top-logo img { height: 60px; margin: -9px 0 -12px -13px; } }
@media (max-width: 575.98px) { .lm-top-logo img { height: 56px; margin: -8px 0 -11px -12px; } }

/* Email and password fields: same height, same icon cells, same orange focus */
.lm-right .input-group > .lm-ico,
.lm-right .input-group > .btn { width: 52px; flex: 0 0 52px; font-size: 20px; }
.lm-right .input-group > .form-control { height: 50px; }
.lm-right .input-group:focus-within > .lm-ico { border-right-color: rgba(247, 128, 31, .3); }
.lm-right .input-group:focus-within > .btn { border-left-color: rgba(247, 128, 31, .3) !important; }
@media (min-width: 992px) and (max-height: 859px) { .lm-right .input-group > .form-control { height: 46px; } }
/* browser autofill keeps the field colours */
.lm-right .input-group > .form-control:-webkit-autofill,
.lm-right .input-group > .form-control:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px var(--lm-field) inset !important; -webkit-text-fill-color: var(--lm-text); caret-color: var(--lm-text);
}
.lm-right .input-group > .form-control:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset !important; }

/* Decorative dots: softer */
.lm-dots { opacity: .45; background-image: radial-gradient(var(--lm-orange) 2px, transparent 2.4px); }

/* Footer */
.lm-foot { width: 100%; padding: 20px 16px 2px; line-height: 1.5; color: #4a5060; letter-spacing: .01em; }
@media (min-width: 992px) and (max-height: 859px) { .lm-foot { padding-top: 12px; } }

/* Tablet: compact welcome banner (text + feature cards only) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .lm-left { aspect-ratio: auto; min-height: 0; padding-bottom: 32px; background-position: center top; }
}
/* Phone: hide the welcome panel and decorations, centred form card */
@media (max-width: 767.98px) {
    .lm-left { display: none; }
    .lm-card { max-width: 460px; }
    .lm-dots { display: none; }
    body.lm-body::before { display: none; }
    body.lm-body {
        background:
            radial-gradient(circle at 50% -6%, rgba(255, 177, 110, .45) 0, rgba(255, 177, 110, 0) 150px),
            linear-gradient(160deg, #f6f6fb 0%, #eceef7 55%, #f4f2f8 100%) !important;
    }
    .lm-foot { padding: 18px 8px 2px; font-size: 12.5px; }
}

/* Short tablet-width screens (e.g. browser zoom 175–200%): show the login form first */
@media (min-width: 768px) and (max-width: 991.98px) and (max-height: 700px) {
    .lm-left { display: none; }
    .lm-card { max-width: 460px; }
}

/* ---------- Dynamic fit for short screens (browser zoom 150%+, small laptop windows) ---------- */
@media (max-height: 700px) {
    .lm-page { padding-top: 12px; padding-bottom: 10px; }
    .lm-top { margin-bottom: 10px; }
    .lm-top-logo img { height: 56px; margin: -8px 0 -11px -12px; }
    .lm-right { padding: 20px clamp(18px, 7%, 40px) 18px; }
    .lm-badge { width: 64px; height: 64px; margin: 2px 0 12px; }
    .lm-badge img { width: 38px; }
    .lm-right h2 { font-size: 24px; }
    .lm-sub { font-size: 14px; margin-top: 4px; }
    .lm-rule { margin: 8px 0 14px; }
    .lm-right .mb-3 { margin-bottom: 12px !important; }
    .lm-right .input-group > .form-control { height: 42px; }
    .lm-row { margin: 2px 0 12px; }
    .lm-right .lm-submit { height: 46px; font-size: 17px; }
    .lm-or { margin: 10px 0; }
    .lm-register { height: 42px; font-size: 15px; }
    .lm-foot { padding-top: 10px; font-size: 12.5px; }
    .lm-left { min-height: 0; }
    .lm-left-copy { padding-top: 6%; }
    .lm-left h1 { font-size: 32px; }
    .lm-left p { font-size: 15px; margin-top: 10px; }
    .lm-feats { margin-top: 14px; }
    .lm-feat { min-height: 70px; }
    .lm-feat i { font-size: 24px; }
}
@media (max-height: 560px) {
    .lm-badge { display: none; }
}
@media (min-width: 992px) and (max-height: 560px) {
    .lm-left { display: none; }
    .lm-card { max-width: 460px; grid-template-columns: 1fr; }
}

/* ---------- Phones: comfortable touch targets (placed last so short-screen rules don't shrink them) ---------- */
@media (max-width: 767.98px) {
    .lm-right .input-group > .form-control { height: 48px; }
    .lm-right .lm-submit { height: 50px; }
    .lm-register { height: 48px; }
    .lm-right .form-check-input { width: 20px; height: 20px; }
    .lm-right .form-check { min-height: 36px; }
    .lm-forgot { display: inline-flex; align-items: center; min-height: 36px; }
}
/* Very narrow phones (320–360px): keep fields readable and Remember / Forgot on one line */
@media (max-width: 360px) {
    .lm-page { padding-left: 10px; padding-right: 10px; }
    .lm-right { padding-left: 14px; padding-right: 14px; }
    .lm-right .input-group > .lm-ico,
    .lm-right .input-group > .btn { width: 44px; flex: 0 0 44px; font-size: 18px; }
    .lm-right .input-group > .form-control { padding: 0 12px; }
    .lm-row { flex-wrap: nowrap !important; gap: 6px !important; }
    .lm-right .form-check { gap: 7px; }
    .lm-right .form-check-label, .lm-forgot { font-size: 13px; white-space: nowrap; }
    .lm-forgot .me-1 { margin-right: 3px !important; }
}
@media (max-width: 420px) {
    .lm-row { flex-wrap: nowrap !important; gap: 6px !important; }
    .lm-right .form-check { gap: 8px; }
    .lm-right .form-check-label, .lm-forgot { font-size: 14px; white-space: nowrap; }
    .lm-forgot .me-1 { margin-right: 3px !important; }
}
@media (max-width: 360px) {
    .lm-right .form-check-label, .lm-forgot { font-size: 13px; }
}

/* ==========================================================================
   Register + Forgot Password pages (same design as login; visual only)
   ========================================================================== */
/* select inside the field box (company) */
.lm-right .input-group > .form-select {
    height: 50px; border: 0 !important; background-color: transparent !important; box-shadow: none !important;
    padding: 0 40px 0 16px; font-size: 15px; color: var(--lm-text); border-radius: 0 10px 10px 0 !important;
    background-position: right 16px center; cursor: pointer;
}
.lm-right .input-group > .form-select:invalid { color: #737a8a; }
.lm-right .input-group > .form-select option { color: var(--lm-text); }

/* terms checkbox */
.lm-terms { display: flex; align-items: center; gap: 10px; padding-left: 0; margin: 4px 0 18px; }
.lm-terms .form-check-label { font-size: 14.5px; }
.lm-terms a { color: var(--lm-orange-deep); font-weight: 500; text-decoration: none; }
.lm-terms a:hover { text-decoration: underline; }

/* secondary pill link text */
.lm-register strong { font-weight: 600; color: var(--lm-orange-deep); }

/* forgot page: long sub text and info alert */
.lm-body--forgot .lm-sub { max-width: 400px; line-height: 1.55; }
.lm-body--forgot .lm-forgot-submit { margin-top: 6px; }
.lm-right .alert-info { border: 1px solid #cfe3f7; border-left: 4px solid #2f80d1; background: #f2f8fe; color: #1d4f80; }
.lm-right .alert-info .alert-link { color: var(--lm-orange-deep); }

/* register page: five fields, so the form is a little tighter */
.lm-right.lm-form--register { padding-top: 26px; padding-bottom: 24px; }
.lm-form--register .lm-badge { width: 72px; height: 72px; margin: 4px 0 16px; }
.lm-form--register .lm-badge img { width: 42px; }
.lm-right.lm-form--register h2 { font-size: 28px; }
.lm-form--register .lm-rule { margin: 12px 0 18px; }
.lm-right.lm-form--register .mb-3 { margin-bottom: 12px !important; }
.lm-right.lm-form--register .input-group > .form-control,
.lm-right.lm-form--register .input-group > .form-select { height: 46px; }
.lm-right.lm-form--register .lm-submit { height: 52px; }
.lm-form--register .lm-or { margin: 14px 0 12px; }
.lm-form--register .lm-register { height: 46px; }
@media (min-width: 992px) and (max-height: 859px) {
    .lm-form--register .lm-badge { display: none; }
    .lm-right.lm-form--register .input-group > .form-control,
    .lm-right.lm-form--register .input-group > .form-select { height: 42px; }
}
@media (max-height: 700px) {
    .lm-right .input-group > .form-select { height: 42px; }
}
@media (max-width: 767.98px) {
    .lm-right .input-group > .form-select,
    .lm-right.lm-form--register .input-group > .form-control,
    .lm-right.lm-form--register .input-group > .form-select { height: 48px; font-size: 16px; }
    .lm-form--register .lm-register { height: 48px; }
    .lm-terms .form-check-label { font-size: 14px; }
    .lm-register { font-size: 15px; }
}
@media (max-width: 360px) {
    .lm-register { font-size: 14px; gap: 6px; }
}
.lm-body--forgot .lm-right { justify-content: center; }

/* Register: its card is taller than login's, so it uses a taller copy of the same office image
   (only the plain wall is extended) – the picture then looks the same as on the login page. */
.lm-body--login .lm-left, .lm-body--register .lm-left { background-image: url("../images/modern-ui/login-left-art-tall.jpg?v=44"); }
@media (min-width: 992px) and (max-height: 859px) {
    .lm-body--login .lm-left, .lm-body--register .lm-left { background-image: url("../images/modern-ui/login-left-art.jpg?v=43"); }
}
@media (max-width: 991.98px) {
    .lm-body--login .lm-left, .lm-body--register .lm-left { background-image: url("../images/modern-ui/login-left-art.jpg?v=43"); }
}

/* Register polish: balanced spacing, comfortable terms row, card a little shorter */
.lm-right.lm-form--register { padding-top: 22px; padding-bottom: 22px; }
.lm-form--register .lm-badge { width: 64px; height: 64px; margin: 2px 0 14px; }
.lm-form--register .lm-badge img { width: 38px; }
.lm-form--register .lm-rule { margin: 10px 0 16px; }
.lm-form--register .lm-terms { margin: 0 0 14px; min-height: 32px; gap: 10px; }
.lm-form--register .lm-terms .form-check-input { width: 19px; height: 19px; margin: 0; flex: 0 0 auto; cursor: pointer; }
.lm-form--register .lm-terms .form-check-label { padding: 6px 0; white-space: nowrap; line-height: 1.3; }
.lm-form--register .lm-terms a { font-weight: 600; }
.lm-form--register .lm-or { margin: 12px 0 10px; }
@media (max-width: 767.98px) {
    .lm-form--register .lm-terms { min-height: 40px; }
    .lm-form--register .lm-terms .form-check-input { width: 20px; height: 20px; }
}
@media (max-width: 360px) {
    .lm-form--register .lm-terms .form-check-label { font-size: 13.5px; }
}

/* Forgot password: server error message sits below the field and can wrap without overlapping the button */
.lm-right .lm-field-error { margin-top: 7px; font-size: 13px; line-height: 1.45; text-align: left; }
.lm-right .mb-3:has(> .lm-field-error) { margin-bottom: 16px !important; }
/* if the page script shows its own quick message, hide the server one so only one shows */
.lm-right .input-group:has(> .invalid-feedback) ~ .lm-field-error { display: none !important; }
.lm-right .mb-3:has(.input-group > .invalid-feedback) { margin-bottom: 32px !important; }

/* ---------- Login, Register and Forgot Password: premium outer background (background only) ---------- */
body.lm-body {
    background:
        radial-gradient(ellipse 58% 48% at 50% 54%, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 85%),
        radial-gradient(circle at 0% 0%, rgba(255, 170, 90, .16) 0, rgba(255, 170, 90, .05) 12%, rgba(255, 170, 90, 0) 22%),
        radial-gradient(circle at 100% 0%, rgba(247, 128, 31, .14) 0, rgba(247, 128, 31, .04) 11%, rgba(247, 128, 31, 0) 20%),
        radial-gradient(circle at 0% 100%, rgba(247, 128, 31, .18) 0, rgba(247, 128, 31, .05) 13%, rgba(247, 128, 31, 0) 24%),
        radial-gradient(circle at 100% 100%, rgba(239, 108, 18, .22) 0, rgba(247, 128, 31, .06) 14%, rgba(247, 128, 31, 0) 26%),
        radial-gradient(ellipse 12% 36% at 0% 52%, rgba(255, 177, 90, .08) 0%, rgba(255, 177, 90, 0) 100%),
        radial-gradient(ellipse 12% 36% at 100% 48%, rgba(255, 177, 90, .08) 0%, rgba(255, 177, 90, 0) 100%),
        radial-gradient(ellipse 40% 12% at 50% 0%, rgba(255, 196, 140, .14) 0%, rgba(255, 196, 140, 0) 100%),
        linear-gradient(180deg, #fbfbfd 0%, #f4f5f9 50%, #f2f3f7 82%, #f6f2ee 100%) !important;
}
/* faint grid that only shows in the empty side areas (fades out behind the card) */
body.lm-body::before {
    inset: 0; filter: none; opacity: 1;
    background:
        linear-gradient(rgba(31, 36, 48, .028) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(90deg, rgba(31, 36, 48, .028) 1px, transparent 1px) 0 0 / 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, transparent 52%, #000 100%);
            mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, transparent 52%, #000 100%);
}
/* thin orange arcs on the far left and right edges */
body.lm-body::after {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(circle at -4% 56%, transparent 0 300px, rgba(247, 128, 31, .08) 301px 302px, transparent 303px 372px, rgba(247, 128, 31, .045) 373px 374px, transparent 375px),
        radial-gradient(circle at 104% 44%, transparent 0 300px, rgba(247, 128, 31, .08) 301px 302px, transparent 303px 372px, rgba(247, 128, 31, .045) 373px 374px, transparent 375px);
}
.lm-body .lm-dots { opacity: .4; }
/* phones and small tablets: keep the clean, simple background */
@media (max-width: 991.98px) {
    body.lm-body::after { display: none; }
}
@media (max-width: 767.98px) {
    body.lm-body::before { display: none; }
    body.lm-body {
        background:
            radial-gradient(circle at 50% -6%, rgba(255, 177, 110, .45) 0, rgba(255, 177, 110, 0) 150px),
            radial-gradient(circle at 100% 100%, rgba(247, 128, 31, .18) 0, rgba(247, 128, 31, 0) 220px),
            linear-gradient(160deg, #fbfbfd 0%, #f2f3f8 60%, #f6f2ee 100%) !important;
    }
}

/* ---------- Password reset status / new password pages (same design as login) ---------- */
.lm-body--reset .lm-right { justify-content: center; }
.lm-reset-body { width: 100%; }
.lm-reset-body .pr-ref { color: var(--lm-orange-deep) !important; }
.lm-reset-body .text-muted { color: var(--lm-muted) !important; }
.lm-reset-body > p.small { line-height: 1.55; text-align: center; }
.lm-right .alert-warning { border: 1px solid #f6dfb5; border-left: 4px solid #f0a020; background: #fff8ec; color: #6b4a10; }
.lm-right .alert-secondary { border: 1px solid #e1e4ec; border-left: 4px solid #8a90a0; background: #f6f7fa; color: #3d4250; }
.lm-right .alert-success { line-height: 1.5; }
.lm-right a.lm-submit { text-decoration: none; }
.lm-right a.lm-submit:hover { color: #fff !important; }
.lm-hint { display: block; margin-top: 6px; font-size: 12.5px; text-align: left; }
.lm-right .mb-3:has(.is-invalid) .lm-hint { display: none; }
/* reset pages are taller than login (like register): same taller copy of the office image */
.lm-body--reset .lm-left { background-image: url("../images/modern-ui/login-left-art-tall.jpg?v=44"); }
@media (min-width: 992px) and (max-height: 859px) {
    .lm-body--reset .lm-left { background-image: url("../images/modern-ui/login-left-art.jpg?v=43"); }
}
@media (max-width: 991.98px) {
    .lm-body--reset .lm-left { background-image: url("../images/modern-ui/login-left-art.jpg?v=43"); }
}

/* Saved-email autofill: the field's cover colour hid the 1px divider after the icon
   (the input overlapped it by 1px). Keep the input next to the icon, not over it. */
.lm-right .input-group > .lm-ico + .form-control,
.lm-right .input-group > .lm-ico + .form-select { margin-left: 0 !important; }

/* ---------- Login <-> Register: panels swap sides (visual only) ----------
   Login: image left, form right. Register (desktop): form left, the same image right.
   pages/auth-swap.js slides the panels across before the page changes. */
@media (min-width: 992px) {
    .lm-body--register .lm-card { grid-template-columns: minmax(0, 49.3%) minmax(0, 50.7%); }
    .lm-body--register .lm-right { order: 1; }
    .lm-body--register .lm-left { order: 2; }
}
.lm-card .lm-left { border-radius: 0; }               /* the card already rounds and clips its corners */
.lm-card.lm-swapping { pointer-events: none; }
.lm-card.lm-swapping .lm-left,
.lm-card.lm-swapping .lm-right { will-change: transform; position: relative; }/* during the swap the card is the window of the sliding track (incoming form | image | outgoing form) */
.lm-card.lm-swapping { position: relative; overflow: clip; }   /* clip (not hidden): the card can never be scrolled sideways mid-slide */

/* Login and Register share one card height on desktop, so the card never moves or resizes when
   switching (Register's five fields set the height; Login's form is centred in the same space). */
@media (min-width: 992px) and (min-height: 860px) {
    .lm-body--login .lm-card, .lm-body--register .lm-card { min-height: 710px; }
}
@media (min-width: 992px) and (min-height: 561px) and (max-height: 859px) {
    .lm-body--login .lm-card, .lm-body--register .lm-card { min-height: 610px; }
}
@media (min-width: 992px) {
    .lm-right.lm-form--login { justify-content: center; }
}
/* stacked layout (tablet/phone): the new form eases in place instead of appearing abruptly */
.lm-right.lm-form-in { animation: lm-form-in .32s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes lm-form-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lm-right.lm-form-in { animation: none; } }
@media (min-width: 992px) and (min-height: 701px) and (max-height: 740px) { .lm-foot { padding-top: 10px; } }

/* ==========================================================================
   Premium polish (visual only): typography, field and button details
   ========================================================================== */

/* Typography: slightly tighter headings, calmer sub text */
.lm-right h2 { letter-spacing: -.02em; line-height: 1.2; }
.lm-sub { line-height: 1.55; }
.lm-left h1 { letter-spacing: -.02em; }

/* Fields: brighter on hover, orange dividers when focused, smooth placeholder fade */
.lm-right .input-group:hover:not(:focus-within) { background: #f8f9fc; }
.lm-right .input-group > .lm-ico,
.lm-right .input-group > .btn { transition: color .2s, background .2s, border-color .2s; }
.lm-right .input-group:focus-within > .lm-ico,
.lm-right .input-group:focus-within > .btn { border-color: rgba(247, 128, 31, .28) !important; }
.lm-right .input-group:focus-within > .btn { background: #fff7f0; }
.lm-right .input-group > .form-control::placeholder { transition: color .2s, opacity .2s; }
.lm-right .input-group > .form-control:focus::placeholder { color: #a3a8b5; }
.lm-right .input-group > .form-select { cursor: pointer; }

/* Checkboxes: gentle tick */
.lm-right .form-check-input { transition: background-color .18s, border-color .18s, box-shadow .2s; }
.lm-right .form-check-input:hover:not(:checked) { border-color: var(--lm-orange); }

/* Buttons: hover / pressed / keyboard-focus states */
.lm-right .lm-submit:hover .lm-submit-arrow { transform: translateX(4px); }
.lm-right .lm-submit:active {                    /* pressed: settles down, shadow tightens */
    transform: translateY(0) scale(.985); transition-duration: .08s;
    box-shadow: 0 8px 18px -12px rgba(239, 108, 18, .9), 0 2px 0 rgba(255, 255, 255, .2) inset;
}
.lm-right .lm-submit:focus-visible { outline: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(247, 128, 31, .45), 0 14px 28px -14px rgba(239, 108, 18, .9); }
.lm-register i { transition: transform .25s var(--lm-ease); }
.lm-register:hover i { transform: translateX(-2px) scale(1.06); }
.lm-register:active { transform: scale(.985); transition-duration: .08s; box-shadow: none; }
.lm-register:focus-visible { outline: 0; border-color: var(--lm-orange); box-shadow: 0 0 0 4px rgba(247, 128, 31, .2); }
/* password eye: pressed + keyboard focus */
.lm-right .input-group > .btn i { transition: transform .15s var(--lm-ease); }
.lm-right .input-group > .btn:active i { transform: scale(.88); }
.lm-right .input-group > .btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px rgba(247, 128, 31, .55) !important; color: var(--lm-orange); }
/* text links: clear keyboard focus */
.lm-forgot:focus-visible, .lm-terms a:focus-visible, .lm-top-logo:focus-visible { outline: 2px solid rgba(247, 128, 31, .55); outline-offset: 3px; border-radius: 4px; }
/* touch screens: no "stuck" hover lift after a tap */
@media (hover: none) {
    .lm-right .lm-submit:hover { transform: none; }
    .lm-right .lm-submit:hover::after { left: -60%; }
    .lm-register:hover { transform: none; box-shadow: none; }
    .lm-register:hover i { transform: none; }
}
/* Register content is a fraction of a pixel taller than the shared card height; 1px less bottom padding keeps both pages identical */
@media (min-width: 992px) { .lm-right.lm-form--register { padding-bottom: 21px; } }
/* Register subtitle stays on ONE line on side-by-side desktops (992px+). On narrower desktop windows it would
   wrap, making Register taller than Login and the card jump during the swap; it scales down slightly instead. */
@media (min-width: 992px) {
    .lm-right.lm-form--register .lm-sub { white-space: nowrap; font-size: min(15px, 1.38vw); }
}
@media (min-width: 992px) and (max-height: 700px) {
    .lm-right.lm-form--register .lm-sub { font-size: min(14px, 1.38vw); }
}

/* ==========================================================================
   Forgot Password / Reset request / Reset Password pages: balance + motion
   (visual only; scoped to .lm-body--forgot and .lm-body--reset)
   ========================================================================== */

/* Same card size and full illustration as Login/Register on desktop (no cropped figure, no jump
   when coming from Login). Taller content (e.g. a pending request) still grows the card. */
@media (min-width: 992px) and (min-height: 860px) {
    .lm-body--forgot .lm-card, .lm-body--reset .lm-card { min-height: 710px; }
    .lm-body--forgot .lm-left { background-image: url("../images/modern-ui/login-left-art-tall.jpg?v=44"); }
}
@media (min-width: 992px) and (min-height: 561px) and (max-height: 859px) {
    .lm-body--forgot .lm-card, .lm-body--reset .lm-card { min-height: 610px; }
}

/* Entrance: card rises (existing), then the content settles in top to bottom */
@keyframes lm-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lm-pop { 0% { opacity: 0; transform: scale(.82); } 70% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
:is(.lm-body--forgot, .lm-body--reset) .lm-right > :not(.lm-badge):not(.lm-reset-body),
.lm-body--reset .lm-reset-body > * { animation: lm-up .55s var(--lm-ease) both; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right > :nth-child(2) { animation-delay: .14s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right > :nth-child(3) { animation-delay: .19s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right > :nth-child(4) { animation-delay: .23s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right > :nth-child(5) { animation-delay: .27s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right > :nth-child(6) { animation-delay: .31s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right > :nth-child(n+7) { animation-delay: .35s; }
.lm-body--reset .lm-reset-body > :nth-child(1) { animation-delay: .3s; }
.lm-body--reset .lm-reset-body > :nth-child(2) { animation-delay: .36s; }
.lm-body--reset .lm-reset-body > :nth-child(3) { animation-delay: .42s; }
.lm-body--reset .lm-reset-body > :nth-child(n+4) { animation-delay: .48s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-badge { animation: lm-pop .6s var(--lm-ease) .08s both, lm-float 6s ease-in-out .7s infinite; }
:is(.lm-body--forgot, .lm-body--reset) .lm-left-copy > * { animation: lm-up .6s var(--lm-ease) both; }
:is(.lm-body--forgot, .lm-body--reset) .lm-left-copy > :nth-child(1) { animation-delay: .15s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-left-copy > :nth-child(2) { animation-delay: .23s; }
:is(.lm-body--forgot, .lm-body--reset) .lm-left-copy > :nth-child(3) { animation-delay: .31s; }
/* request-status page auto-refreshes: no replay of the entrance for a status already shown */
:is(html.lm-no-intro, html.lm-nav) .lm-card,
:is(html.lm-no-intro, html.lm-nav) :is(.lm-body--forgot, .lm-body--reset) .lm-right > :not(.lm-badge):not(.lm-reset-body),
:is(html.lm-no-intro, html.lm-nav) .lm-body--reset .lm-reset-body > *,
:is(html.lm-no-intro, html.lm-nav) :is(.lm-body--forgot, .lm-body--reset) .lm-left-copy > * { animation: none; }
:is(html.lm-no-intro, html.lm-nav) :is(.lm-body--forgot, .lm-body--reset) .lm-badge { animation: lm-float 6s ease-in-out infinite; }

/* Validation: message slides in softly; the field gives a short shake on a failed submit */
@keyframes lm-msg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes lm-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
:is(.lm-body--forgot, .lm-body--reset) .lm-right .invalid-feedback,
:is(.lm-body--forgot, .lm-body--reset) .lm-right .lm-field-error { animation: lm-msg-in .28s var(--lm-ease) both; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right .input-group > .invalid-feedback { margin-top: 7px; line-height: 1.4; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right .input-group.lm-shake { animation: lm-shake .42s cubic-bezier(.36, .07, .19, .97); }

/* Submitting: the button keeps its full colour (no faded "disabled" look) and shows a moving sheen */
@keyframes lm-sheen { from { left: -60%; } to { left: 130%; } }
:is(.lm-body--forgot, .lm-body--reset) .lm-right .lm-submit.lm-loading,
:is(.lm-body--forgot, .lm-body--reset) .lm-right .lm-submit:disabled {
    opacity: 1 !important; cursor: progress; pointer-events: none; transform: none;
    filter: saturate(.92);
}
:is(.lm-body--forgot, .lm-body--reset) .lm-right .lm-submit.lm-loading::after { animation: lm-sheen 1.1s ease-in-out infinite; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right .lm-submit.lm-loading > i { font-size: 22px; }

/* Status results: success pops in with a soft glow; pending shows a gently turning hourglass */
@keyframes lm-success { 0% { opacity: 0; transform: scale(.96); box-shadow: 0 0 0 0 rgba(34, 165, 90, 0); }
                        60% { opacity: 1; transform: scale(1.01); box-shadow: 0 0 0 6px rgba(34, 165, 90, .12); }
                        100% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(34, 165, 90, 0); } }
@keyframes lm-check { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes lm-hourglass { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
:is(.lm-body--forgot, .lm-body--reset) .lm-right .alert-success { animation: lm-success .7s var(--lm-ease) .35s both; }
:is(.lm-body--forgot, .lm-body--reset) .lm-right .alert-success > .mdi:first-child { display: inline-block; animation: lm-check .5s var(--lm-ease) .75s both; }
.lm-body--reset .lm-right .alert-warning > .mdi-timer-sand { display: inline-block; animation: lm-hourglass 3.2s ease-in-out infinite; }
:is(html.lm-no-intro, html.lm-nav) :is(.lm-body--forgot, .lm-body--reset) .lm-right .alert-success,
:is(html.lm-no-intro, html.lm-nav) :is(.lm-body--forgot, .lm-body--reset) .lm-right .alert-success > .mdi:first-child { animation: none; }
/* request reference: fades in a beat after the heading */
.lm-body--reset .pr-ref { animation: lm-fade .6s ease .45s both; }
:is(html.lm-no-intro, html.lm-nav) .lm-body--reset .pr-ref { animation: none; }

@media (prefers-reduced-motion: reduce) {
    :is(.lm-body--forgot, .lm-body--reset) *, :is(.lm-body--forgot, .lm-body--reset) *::after { animation: none !important; }
}

/* Forgot Password uses the Register layout (form LEFT, image RIGHT) with the same column widths, so the
   image panel keeps exactly the same size when the panels swap. Request status / Reset Password keep the
   Login layout (image LEFT). */
@media (min-width: 992px) {
    .lm-body--forgot .lm-card { grid-template-columns: minmax(0, 49.3%) minmax(0, 50.7%); }
    .lm-body--forgot .lm-right { order: 1; }
    .lm-body--forgot .lm-left { order: 2; }
}
/* Panel-scoped copies of the page styles, so a panel swapped in looks final from its first frame */
.lm-form--forgot .lm-sub { max-width: 400px; line-height: 1.55; }
.lm-form--forgot .lm-forgot-submit { margin-top: 6px; }
.lm-right.lm-form--forgot, .lm-right.lm-form--reset { justify-content: center; }
/* Request status / Reset Password carry more content: same compact logo badge as Register (hidden on
   shorter desktop screens, exactly like Register) so these pages fit the same card height. */
.lm-form--reset .lm-badge { width: 64px; height: 64px; margin: 2px 0 14px; }
.lm-form--reset .lm-badge img { width: 38px; }
@media (min-width: 992px) and (max-height: 859px) { .lm-form--reset .lm-badge { display: none; } }
@media (min-width: 1600px) and (min-height: 860px) { .lm-right.lm-form--reset { padding-top: 40px; } }

/* ==========================================================================
   Illustration motion (all sign-in pages share this one image panel)
   The picture is drawn on its own layer behind the heading, clipped to the panel:
   a short ease-in on first load, then a very slow 5px float. Text never moves.
   ========================================================================== */
@keyframes lm-img-in { from { transform: scale(1.05); } to { transform: scale(1.02); } }
@keyframes lm-img-float { 0%, 100% { transform: scale(1.02) translate3d(0, 0, 0); } 50% { transform: scale(1.02) translate3d(0, -5px, 0); } }
body.lm-body .lm-left { overflow: hidden; isolation: isolate; }
body.lm-body .lm-left::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: inherit; border-radius: inherit;
    transform: scale(1.02); will-change: transform;
    animation: lm-img-in 1.2s var(--lm-ease) both, lm-img-float 9s ease-in-out 1.2s infinite;
}
/* request-status auto refresh: no zoom-in again, just the float */
html.lm-no-intro body.lm-body .lm-left::before { animation: lm-img-float 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.lm-body .lm-left::before { animation: none !important; } }
/* "Back to Login": arrow after the text, nudges right on hover */
.lm-register:hover i.lm-register-end { transform: translateX(3px); }
@media (hover: none) { .lm-register:hover i.lm-register-end { transform: none; } }
