/**
 * Сторінка входу — візуал LeadMafia (темна тема, двоколонковий layout).
 * Підключається лише на login.php (body.auth-lm).
 */
body.auth-lm {
    box-sizing: border-box;
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
}

body.auth-lm *,
body.auth-lm *::before,
body.auth-lm *::after {
    box-sizing: border-box;
}

body.auth-lm .auth-lm-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background:
        radial-gradient(circle at 18% 18%, rgba(210, 0, 0, .35), transparent 28%),
        radial-gradient(circle at 88% 75%, rgba(180, 0, 0, .28), transparent 30%),
        linear-gradient(135deg, #080808 0%, #020202 50%, #0b0000 100%);
}

body.auth-lm .auth-lm-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 7px),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, .7) 75%);
    pointer-events: none;
}

body.auth-lm .auth-lm-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, transparent 0 45%, rgba(255, 0, 0, .08) 46%, transparent 49%),
        linear-gradient(25deg, transparent 0 55%, rgba(255, 0, 0, .07) 56%, transparent 59%);
    opacity: .7;
    pointer-events: none;
}

body.auth-lm .auth-lm-shell {
    width: min(1380px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(8, 8, 8, .82);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .75), inset 0 0 80px rgba(255, 0, 0, .04);
    overflow: hidden;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

body.auth-lm .auth-lm-visual {
    position: relative;
    padding: 55px 70px 35px;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 65%, rgba(255, 0, 0, .13), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .88));
}

body.auth-lm .auth-lm-logo {
    position: relative;
    z-index: 4;
    max-width: 520px;
}

body.auth-lm .auth-lm-hat {
    width: 76px;
    height: 34px;
    margin-left: 230px;
    margin-bottom: 10px;
    border: 4px solid #e11313;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    transform: skewX(-8deg);
    position: relative;
}

body.auth-lm .auth-lm-hat::after {
    content: "";
    position: absolute;
    left: -28px;
    bottom: -10px;
    width: 132px;
    height: 13px;
    border: 3px solid #e11313;
    border-radius: 50%;
}

body.auth-lm .auth-lm-logo h1 {
    margin: 0;
    font-size: clamp(48px, 6vw, 76px);
    letter-spacing: 4px;
    font-weight: 900;
    line-height: .95;
    text-shadow: 0 0 28px rgba(255, 255, 255, .16);
}

body.auth-lm .auth-lm-logo .auth-lm-brand-a { color: #fff; }
body.auth-lm .auth-lm-logo .auth-lm-brand-b { color: #d80b0b; }

body.auth-lm .auth-lm-logo p {
    margin: 22px 0 0;
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, .78);
    text-transform: uppercase;
    font-weight: 700;
}

body.auth-lm .auth-lm-city {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54%;
    opacity: .38;
    background:
        linear-gradient(to top, #000 0%, transparent 70%),
        repeating-linear-gradient(to right, transparent 0 38px, rgba(255, 255, 255, .12) 39px 40px),
        linear-gradient(to top, rgba(255, 255, 255, .08), transparent);
    clip-path: polygon(0 100%, 0 55%, 6% 55%, 6% 42%, 12% 42%, 12% 62%, 18% 62%, 18% 35%, 25% 35%, 25% 70%, 31% 70%, 31% 48%, 38% 48%, 38% 28%, 44% 28%, 44% 64%, 51% 64%, 51% 38%, 59% 38%, 59% 52%, 67% 52%, 67% 30%, 75% 30%, 75% 60%, 83% 60%, 83% 44%, 91% 44%, 91% 67%, 100% 67%, 100% 100%);
}

body.auth-lm .auth-lm-boss {
    position: absolute;
    left: 70px;
    bottom: 20px;
    width: 470px;
    height: 460px;
    z-index: 3;
    opacity: .98;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .85));
}

body.auth-lm .auth-lm-boss .chair {
    position: absolute;
    left: 70px;
    bottom: 70px;
    width: 310px;
    height: 230px;
    border-radius: 48% 48% 20px 20px;
    background: linear-gradient(135deg, #181818, #050505 65%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 35px rgba(255, 255, 255, .08);
}

body.auth-lm .auth-lm-boss .body {
    position: absolute;
    left: 118px;
    bottom: 50px;
    width: 245px;
    height: 245px;
    background: linear-gradient(135deg, #111, #010101);
    clip-path: polygon(28% 0, 70% 0, 94% 100%, 0 100%);
    border-radius: 28px;
}

body.auth-lm .auth-lm-boss .shirt {
    position: absolute;
    left: 202px;
    bottom: 115px;
    width: 65px;
    height: 160px;
    background: linear-gradient(#d8d8d8, #333);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    opacity: .38;
}

body.auth-lm .auth-lm-boss .head {
    position: absolute;
    left: 185px;
    bottom: 285px;
    width: 92px;
    height: 112px;
    background: radial-gradient(circle at 50% 20%, #2a2a2a, #020202 72%);
    border-radius: 45% 45% 52% 52%;
    box-shadow: 0 0 35px rgba(0, 0, 0, 1);
}

body.auth-lm .auth-lm-boss .boss-hat-top {
    position: absolute;
    left: 158px;
    bottom: 378px;
    width: 150px;
    height: 65px;
    background: linear-gradient(#222, #030303);
    border-radius: 50% 50% 12px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
}

body.auth-lm .auth-lm-boss .boss-hat-brim {
    position: absolute;
    left: 112px;
    bottom: 364px;
    width: 245px;
    height: 30px;
    background: linear-gradient(#181818, #010101);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
}

body.auth-lm .auth-lm-smoke {
    position: absolute;
    left: 150px;
    bottom: 315px;
    width: 120px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 60%);
    filter: blur(14px);
    opacity: .5;
    transform: rotate(-22deg);
    z-index: 2;
}

body.auth-lm .auth-lm-laptop {
    position: absolute;
    left: 25px;
    bottom: 40px;
    width: 290px;
    height: 175px;
    background: linear-gradient(145deg, #111, #020202);
    border: 2px solid rgba(255, 255, 255, .12);
    border-radius: 12px 12px 4px 4px;
    z-index: 5;
    transform: perspective(700px) rotateY(12deg) rotateX(3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .8);
    padding: 18px;
}

body.auth-lm .auth-lm-laptop::after {
    content: "";
    position: absolute;
    left: -25px;
    right: -25px;
    bottom: -18px;
    height: 22px;
    background: linear-gradient(90deg, #111, #333, #080808);
    border-radius: 2px 2px 18px 18px;
}

body.auth-lm .auth-lm-fb-line {
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    margin-bottom: 16px;
}

body.auth-lm .auth-lm-fb-line span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #1877f2;
    margin-right: 8px;
    font-weight: 900;
}

body.auth-lm .auth-lm-screen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
}

body.auth-lm .auth-lm-screen-grid b {
    display: block;
    color: #ff2a2a;
    font-size: 18px;
    margin-top: 4px;
}

body.auth-lm .auth-lm-np-box {
    position: absolute;
    left: 440px;
    bottom: 55px;
    width: 260px;
    height: 155px;
    z-index: 6;
    background: linear-gradient(145deg, #1d1d1d, #050505);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 28px 45px rgba(0, 0, 0, .75), inset 0 0 35px rgba(255, 0, 0, .08);
    transform: rotate(-1deg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, .78);
    font-weight: 900;
    font-size: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.auth-lm .auth-lm-np-box .np-icon {
    width: 42px;
    height: 42px;
    background: #e30613;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

body.auth-lm .auth-lm-money {
    position: absolute;
    left: 300px;
    bottom: 8px;
    width: 150px;
    height: 45px;
    z-index: 7;
    background: repeating-linear-gradient(90deg, #d9d2b0 0 25px, #a19b7f 26px 28px);
    border-radius: 6px;
    transform: rotate(-5deg);
    box-shadow: 0 15px 25px rgba(0, 0, 0, .65);
    opacity: .85;
}

body.auth-lm .auth-lm-stats {
    position: absolute;
    left: 610px;
    top: 210px;
    z-index: 8;
    display: grid;
    gap: 18px;
}

body.auth-lm .auth-lm-stat {
    width: 120px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 0, 0, .35);
    border-radius: 12px;
    background: rgba(10, 10, 10, .65);
    box-shadow: 0 0 25px rgba(255, 0, 0, .12);
    color: #ff2020;
    font-weight: 900;
    font-size: 24px;
}

body.auth-lm .auth-lm-stat small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    text-transform: uppercase;
}

body.auth-lm .auth-lm-chart {
    position: absolute;
    left: 585px;
    bottom: 120px;
    width: 260px;
    height: 260px;
    z-index: 4;
    opacity: .85;
}

body.auth-lm .auth-lm-chart svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 18px rgba(255, 0, 0, .45));
}

body.auth-lm .auth-lm-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    position: relative;
    z-index: 9;
}

body.auth-lm .auth-lm-form-card {
    width: 100%;
    max-width: 430px;
    padding: 54px 52px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: rgba(8, 8, 8, .72);
    box-shadow: inset 0 0 55px rgba(255, 255, 255, .025), 0 25px 65px rgba(0, 0, 0, .55);
    backdrop-filter: blur(14px);
}

body.auth-lm .auth-lm-form-card h2 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 900;
}

body.auth-lm .auth-lm-form-card .auth-lm-sub {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .58);
    font-size: 16px;
    line-height: 1.5;
}

body.auth-lm .auth-lm-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 10px;
    border: 1px solid rgba(255, 60, 60, .45);
    background: rgba(255, 0, 0, .12);
    color: #ffb4b4;
}

body.auth-lm .auth-lm-alert i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #ff4040;
}

body.auth-lm .auth-lm-field {
    margin-bottom: 24px;
}

body.auth-lm .auth-lm-field label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    font-weight: 700;
}

body.auth-lm .auth-lm-input-wrap {
    position: relative;
}

body.auth-lm .auth-lm-input-wrap > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .55;
    font-size: 18px;
    pointer-events: none;
}

body.auth-lm .auth-lm-input-wrap input {
    width: 100%;
    height: 62px;
    background: rgba(0, 0, 0, .38);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: #fff;
    outline: none;
    padding: 0 18px 0 52px;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}

body.auth-lm .auth-lm-input-wrap input::placeholder {
    color: rgba(255, 255, 255, .35);
}

body.auth-lm .auth-lm-input-wrap input:focus {
    border-color: rgba(255, 0, 0, .65);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, .08);
}

body.auth-lm .auth-lm-submit {
    width: 100%;
    height: 66px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #e50909, #a50000);
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: .8px;
    text-transform: uppercase;
    box-shadow: 0 14px 35px rgba(215, 0, 0, .28);
    transition: transform .2s, box-shadow .2s;
}

body.auth-lm .auth-lm-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(215, 0, 0, .38);
}

body.auth-lm .auth-lm-submit i {
    margin-right: 8px;
}

@media (max-width: 1100px) {
    body.auth-lm .auth-lm-shell {
        grid-template-columns: 1fr;
    }
    body.auth-lm .auth-lm-visual {
        min-height: 620px;
    }
    body.auth-lm .auth-lm-form-side {
        padding-top: 0;
    }
}

@media (max-width: 720px) {
    body.auth-lm .auth-lm-page {
        padding: 18px;
    }
    body.auth-lm .auth-lm-visual {
        padding: 35px 25px;
        min-height: 560px;
    }
    body.auth-lm .auth-lm-logo p {
        font-size: 14px;
        letter-spacing: 3px;
    }
    body.auth-lm .auth-lm-boss {
        left: 10px;
        transform: scale(.75);
        transform-origin: bottom left;
    }
    body.auth-lm .auth-lm-laptop {
        transform: scale(.72) perspective(700px) rotateY(12deg);
        transform-origin: bottom left;
    }
    body.auth-lm .auth-lm-np-box {
        left: 210px;
        width: 185px;
        height: 112px;
        font-size: 16px;
    }
    body.auth-lm .auth-lm-stats,
    body.auth-lm .auth-lm-chart,
    body.auth-lm .auth-lm-money {
        display: none;
    }
    body.auth-lm .auth-lm-form-side {
        padding: 22px;
    }
    body.auth-lm .auth-lm-form-card {
        padding: 34px 24px;
    }
}
