@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800;900&display=swap');

:root {
    --lp-blue: #155eef;
    --lp-blue-dark: #0d3d9b;
    --lp-navy: #0a234e;
    --lp-text: #1a2c47;
    --lp-muted: #77869b;
    --lp-border: #dce7f5;
    --lp-surface: rgba(255, 255, 255, .94);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: 'Noto Sans Arabic', 'Cairo', 'Inter', Arial, sans-serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-premium-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--lp-text);
    background: #eaf2ff;
}

.lp-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            102deg,
            rgba(4, 25, 64, .93) 0%,
            rgba(9, 47, 109, .87) 41%,
            rgba(14, 72, 160, .58) 62%,
            rgba(234, 242, 255, .9) 100%
        ),
        url('../images/login-real-estate-bg.jpg') center / cover no-repeat;
}

.lp-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.lp-shell {
    width: min(1500px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 42px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.lp-showcase {
    min-height: 700px;
    display: flex;
    align-items: flex-end;
}

.lp-showcase-content {
    max-width: 760px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.16),
        rgba(255,255,255,.07)
    );
    box-shadow: 0 28px 75px rgba(2, 17, 47, .31);
    backdrop-filter: blur(17px);
}

.lp-brand-chip {
    width: fit-content;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.7px;
}

.lp-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #62eeb5;
    box-shadow: 0 0 0 6px rgba(98, 238, 181, .14);
}

.lp-showcase h1 {
    margin: 18px 0 9px;
    font-size: clamp(35px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.28;
}

.lp-showcase h1 strong {
    display: block;
    font-weight: 900;
}

.lp-showcase > div > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 2;
}

.lp-feature-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lp-feature-grid article {
    min-height: 92px;
    padding: 15px;
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 17px;
    background: rgba(255,255,255,.08);
}

.lp-feature-grid i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #0b3a89;
    background: #fff;
    font-size: 19px;
}

.lp-feature-grid strong,
.lp-feature-grid small {
    display: block;
}

.lp-feature-grid strong {
    font-size: 11px;
}

.lp-feature-grid small {
    margin-top: 3px;
    color: rgba(255,255,255,.68);
    font-size: 8px;
}

.lp-contact-strip {
    margin-top: 22px;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    border-top: 1px solid rgba(255,255,255,.18);
}

.lp-contact-strip div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.84);
    font-size: 10px;
}

.lp-login-side {
    position: relative;
    min-height: 700px;
    display: grid;
    align-content: center;
    justify-items: center;
}

.lp-language-switcher {
    width: min(510px, 100%);
    margin-bottom: 12px;
    padding: 5px;
    display: flex;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 14px;
    background: rgba(255,255,255,.64);
    box-shadow: 0 13px 34px rgba(32, 75, 137, .1);
    backdrop-filter: blur(13px);
}

.lp-language-switcher a {
    flex: 1;
    padding: 8px 10px;
    text-align: center;
    border-radius: 10px;
    color: #65758d;
    font-size: 9px;
    font-weight: 800;
    transition: .18s ease;
}

.lp-language-switcher a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--lp-blue), var(--lp-blue-dark));
    box-shadow: 0 8px 19px rgba(21, 94, 239, .25);
}

.lp-login-card {
    width: min(510px, 100%);
    padding: clamp(25px, 4vw, 39px);
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 30px;
    background: var(--lp-surface);
    box-shadow: 0 32px 80px rgba(24, 67, 131, .22);
    backdrop-filter: blur(18px);
}

.lp-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.lp-logo {
    width: 67px;
    height: 67px;
    display: grid;
    place-items: center;
    border-radius: 21px;
    color: #fff;
    background:
        linear-gradient(145deg, #0d346f, #155eef);
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.22),
        0 14px 30px rgba(21,94,239,.27);
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -3px;
}

.lp-logo-wrap > div:last-child strong,
.lp-logo-wrap > div:last-child span {
    display: block;
}

.lp-logo-wrap > div:last-child strong {
    color: #133464;
    font-size: 18px;
    letter-spacing: 2.2px;
}

.lp-logo-wrap > div:last-child span {
    color: #73839a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 3.3px;
}

.lp-login-heading {
    margin: 28px 0 22px;
    text-align: center;
}

.lp-login-heading > span {
    color: var(--lp-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.lp-login-heading h2 {
    margin: 4px 0 5px;
    color: #16345e;
    font-size: 25px;
}

.lp-login-heading p {
    margin: 0;
    color: #8693a6;
    font-size: 9px;
}

.lp-alert {
    margin-bottom: 17px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #ffd5dc;
    border-radius: 12px;
    color: #a63b51;
    background: #fff0f3;
    font-size: 9px;
    font-weight: 700;
}

.lp-form {
    display: grid;
    gap: 15px;
}

.lp-form > label {
    display: grid;
    gap: 6px;
}

.lp-form > label > span {
    color: #4f617a;
    font-size: 9px;
    font-weight: 800;
}

.lp-input-wrap {
    position: relative;
}

.lp-input-wrap > i {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7d8ea6;
    font-size: 14px;
    pointer-events: none;
}

.lp-input-wrap input {
    width: 100%;
    min-height: 51px;
    padding: 10px 45px;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    color: #203653;
    background: #f9fbfe;
    outline: none;
    font-size: 11px;
    transition: .18s ease;
}

.lp-input-wrap input:focus {
    border-color: #74a3fa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21,94,239,.09);
}

.lp-password-toggle {
    position: absolute;
    inset-inline-end: 9px;
    top: 50%;
    width: 35px;
    height: 35px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #74859c;
    background: transparent;
    cursor: pointer;
}

.lp-password-toggle:hover {
    color: var(--lp-blue);
    background: #eaf2ff;
}

.lp-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lp-remember {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lp-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lp-checkbox-mark {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border: 1px solid #cdd9e9;
    border-radius: 6px;
    color: transparent;
    background: #fff;
    font-size: 9px;
    transition: .18s ease;
}

.lp-remember input:checked + .lp-checkbox-mark {
    color: #fff;
    border-color: var(--lp-blue);
    background: var(--lp-blue);
}

.lp-remember b {
    color: #607088;
    font-size: 9px;
    font-weight: 700;
}

.lp-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16815e;
    font-size: 8px;
    font-weight: 800;
}

.lp-submit {
    min-height: 54px;
    margin-top: 4px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-blue), #0b43ad);
    box-shadow: 0 15px 30px rgba(21,94,239,.25);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

.lp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 36px rgba(21,94,239,.31);
}

.lp-card-footer {
    margin-top: 22px;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid #e8eef6;
    color: #8a97a9;
    font-size: 8px;
}

.lp-copyright {
    margin-top: 15px;
    color: #718098;
    font-size: 8px;
}

html[dir='rtl'] .lp-submit i {
    transform: rotate(180deg);
}

@media (max-width: 1050px) {
    .lp-shell {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .lp-showcase {
        min-height: auto;
    }

    .lp-showcase-content {
        max-width: none;
    }

    .lp-login-side {
        min-height: auto;
        padding-bottom: 25px;
    }

    .lp-background {
        background:
            linear-gradient(rgba(4,31,76,.87), rgba(231,241,255,.95)),
            url('../images/login-real-estate-bg.jpg') center / cover no-repeat;
    }
}

@media (max-width: 620px) {
    .lp-shell {
        padding: 12px;
    }

    .lp-showcase-content,
    .lp-login-card {
        border-radius: 22px;
    }

    .lp-feature-grid {
        grid-template-columns: 1fr;
    }

    .lp-contact-strip {
        display: grid;
    }

    .lp-form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* KakaKhan v2 login polish */
.lp-login-card{border-radius:30px!important;box-shadow:0 34px 85px rgba(12,60,136,.22)!important}
.lp-logo{background:url('../images/kakakhan-logo-v2.svg') center/cover no-repeat!important;color:transparent!important;box-shadow:none!important}
.lp-submit{background:linear-gradient(135deg,#145bd7,#2f86ff)!important}
.lp-language-switcher a.active{background:linear-gradient(135deg,#145bd7,#2f86ff)!important}
