﻿/* ─── TOKENS ─── */
:root {
    --pri: #0A7CBA;
    --pri-l: #3DB8E8;
    --pri-d: #065A8C;
    --pri-5: rgba(10,124,186,.05);
    --pri-10: rgba(10,124,186,.10);
    --pri-20: rgba(10,124,186,.20);
    --sec: #1B3A5C;
    --sec-d: #0F2640;
    --acc: #FF5C35;
    --acc-d: #D94420;
    --ok: #10B981;
    --w: #fff;
    --off: #F7F9FC;
    --g50: #F0F4F8;
    --g100: #E1E8EF;
    --g200: #C8D3DE;
    --g300: #A3B3C4;
    --g400: #7B8FA4;
    --g500: #576D82;
    --g600: #3E5268;
    --g700: #2C3E50;
    --g800: #1A2A3A;
    --g900: #0D1520;
    --ff: 'DM Sans', system-ui, sans-serif;
    --ease: cubic-bezier(.16,1,.3,1);
}

/* ─── GLOBAL RESET ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

body.login-page {
    font-family: var(--ff);
    font-size: 15px;
    color: var(--g700);
    background: var(--w);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ─── PAGE SHELL ─── */
.lp-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ══════════════ LEFT — VIDEO PANEL ══════════════ */
.lp-left {
    position: relative;
    overflow: hidden;
    background: var(--sec-d);
}

.lp-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* gradient overlay */
.lp-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 145deg, rgba(13,21,32,.82) 0%, rgba(10,90,140,.55) 55%, rgba(6,30,56,.70) 100% );
}

/* dot texture */
.lp-dots {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.045) 1px, transparent 0);
    background-size: 30px 30px;
}

/* ambient glow blob */
.lp-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,124,186,.22) 0%, transparent 70%);
    top: -80px;
    right: -120px;
    z-index: 2;
    animation: blobPulse 8s ease-in-out infinite;
}

.lp-glow-b {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,92,53,.10) 0%, transparent 70%);
    bottom: -60px;
    left: -60px;
    top: auto;
    right: auto;
    animation-delay: -4s;
}

/* brand content */
.lp-brand {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 48px 52px;
}

.lp-brand__logo img {
    height: 36px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.lp-brand__mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-brand__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255,255,255,.08);
    color: white;
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
    width: fit-content;
}

    .lp-brand__tag::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: white;
        animation: dotBlink 2s ease-in-out infinite;
    }

.lp-brand__title {
    font-family: var(--ff);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.035em;
    color: white;
    margin-bottom: 18px;
}

    .lp-brand__title em {
        font-style: normal;
        background: white;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.lp-brand__sub {
    font-size: 15px;
    color: rgba(255,255,255,.58);
    max-width: 360px;
    line-height: 1.75;
}

/* stat chips */
.lp-stats {
    display: flex;
    gap: 14px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.lp-stat {
    padding: 14px 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 90px;
    transition: background .3s;
}

    .lp-stat:hover {
        background: rgba(255,255,255,.12);
    }

.lp-stat__n {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w);
    line-height: 1;
    margin-bottom: 4px;
}

.lp-stat__l {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* bottom footer */
.lp-brand__foot {
    font-size: 12px;
    color: rgba(255,255,255,.28);
    letter-spacing: .03em;
}

/* ══════════════ RIGHT — FORM PANEL ══════════════ */
.lp-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    background: var(--w);
    position: relative;
}

    /* subtle bg detail */
    .lp-right::before {
        content: '';
        position: absolute;
        top: -120px;
        right: -120px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle, var(--pri-10) 0%, transparent 70%);
        pointer-events: none;
    }

.lp-form-box {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: fadeUp .6s var(--ease) both;
}

/* logo on right side */
.lp-form-box__logo {
    margin-bottom: 36px;
}

    .lp-form-box__logo img {
        height: 36px;
    }

/* heading */
.lp-heading {
    margin-bottom: 30px;
}

    .lp-heading h2 {
        font-size: clamp(1.7rem, 2.8vw, 2.2rem);
        font-weight: 700;
        letter-spacing: -.03em;
        color: var(--g900);
        margin-bottom: 6px;
    }

    .lp-heading p {
        font-size: 14px;
        color: var(--g400);
    }

/* form fields */
.lp-field {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

    .lp-field label {
        font-size: 12px;
        font-weight: 600;
        color: var(--g600);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

.lp-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--g100);
    background: var(--off);
    color: var(--g800);
    font-family: var(--ff);
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

    .lp-input:focus {
        border-color: var(--pri);
        background: var(--w);
        box-shadow: 0 0 0 5px var(--pri-10);
    }

    .lp-input:hover:not(:focus) {
        border-color: var(--g200);
    }

/* validation */
.text-danger {
    font-size: 12px;
    color: #E53E3E;
    margin-top: 4px;
    display: block;
}

/* submit button */
.lp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: var(--ff);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--w);
    background: linear-gradient(135deg, var(--acc), var(--acc-d));
    box-shadow: 0 4px 20px rgba(255,92,53,.28);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    margin-top: 8px;
}

    .lp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(255,92,53,.38);
    }

    .lp-btn:active {
        transform: translateY(0);
    }

/* divider */
.lp-divider {
    height: 1px;
    background: var(--g100);
    margin: 28px 0;
}

/* footer links row */
.lp-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lp-foot__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .lp-foot__links a {
        font-size: 13px;
        color: var(--pri);
        font-weight: 500;
        transition: color .15s;
    }

        .lp-foot__links a:hover {
            color: var(--pri-d);
        }

    .lp-foot__links p {
        font-size: 13px;
        color: var(--g400);
        margin: 0;
    }

        .lp-foot__links p a {
            font-weight: 600;
        }

/* language dropdown */
.lp-lang .nav-item {
    list-style: none;
}

.lp-lang .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--g600);
    padding: 7px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--g100);
    transition: all .2s;
    cursor: pointer;
}

    .lp-lang .nav-link:hover {
        border-color: var(--pri);
        color: var(--pri);
        background: var(--pri-5);
    }

.lp-lang .avatar {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .lp-lang .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.lp-lang .dropdown-menu {
    min-width: 160px;
    border-radius: 12px;
    border: 1px solid var(--g100);
    box-shadow: 0 12px 36px rgba(0,0,0,.1);
    padding: 6px;
}

.lp-lang .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--g600);
    transition: all .15s;
}

    .lp-lang .dropdown-item:hover {
        background: var(--pri-5);
        color: var(--pri);
    }

/* page footer */
.lp-page-footer {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 12px;
    color: var(--g400);
    background: var(--off);
    border-top: 1px solid var(--g100);
}

    .lp-page-footer a {
        color: var(--pri);
        font-weight: 500;
    }

/* loader overlay */
#global-loader {
    position: fixed;
    inset: 0;
    background: var(--w);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-img {
    width: 48px;
    height: 48px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blobPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: .7;
    }
}

@keyframes dotBlink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .lp-wrap {
        grid-template-columns: 1fr;
    }

    .lp-left {
        display: none;
    }

    .lp-right {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .lp-form-box {
        max-width: 100%;
    }

    .lp-foot {
        flex-direction: column;
        gap: 18px;
    }
}

.ftr__logo {
    height: 34px;
    filter: brightness(0) invert(1);
    opacity: .85;
}

.lp-form-box {
    max-width: 560px;
}

@media (max-width: 900px) {
    .lp-form-box {
        max-width: 100%;
    }
}
