/* ============================================================
   LOGIN V2 — Minimalist Split Layout (Elements UI)
   No top-bar. Language picker lives inside the form card.
   ============================================================ */

@font-face {
    font-family: 'NotoArabicCustom';
    src: url('fonts/Noto_Sans_Arabic/NotoSansArabic-VariableFont_wdth-wght.ttf') format('truetype');
    
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #f4f5f7;
}

html, body,
input, button, label, select, textarea, span, p, a, h1, h2, h3, h4, h5 {
    font-family: 'Urbanist', 'NotoArabicCustom', system-ui, sans-serif;
}

/* ── Full-screen flex wrapper ──────────────────────────────── */
.lv2-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #f4f5f7;
}

/* ── Split card ────────────────────────────────────────────── */
.lv2-card {
    width: 100%;
    max-width: 980px;
    min-height: 560px;
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .11);
    overflow: hidden;
}

/* ── LEFT — brand panel ────────────────────────────────────── */
.lv2-brand {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg,
        var(--main-color, #696cff) 0%,
        var(--secondary-color, #9155fd) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 40px;
    gap: 0;
}

/* decorative circles */
.lv2-brand::before,
.lv2-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.lv2-brand::before {
    width: 380px; height: 380px;
    background: rgba(255,255,255,.06);
    top: -120px; right: -100px;
}
.lv2-brand::after {
    width: 260px; height: 260px;
    background: rgba(255,255,255,.05);
    bottom: -80px; left: -70px;
}

/* logo on brand panel */
.lv2-brand-logo {
    position: relative;
    z-index: 1;
    max-width: 240px;
    max-height: 84px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 28px;
    padding: 8px 14px;
    border-radius: 14px;
    
  
    filter: brightness(0) invert(1);
}

.lv2-brand-title {
    position: relative;
    z-index: 1;
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -.01em;
}

.lv2-brand-sub {
    position: relative;
    z-index: 1;
    font-size: .93rem;
    font-weight: 400;
    color: rgba(255,255,255,.78);
    text-align: center;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 0 28px;
}

/* feature list */
.lv2-features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lv2-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.88);
    font-size: .84rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.lv2-features li:last-child { border-bottom: none; }

.lv2-features li i {
    font-size: 1.05rem;
    flex-shrink: 0;
    color: rgba(255,255,255,.95);
}

/* powered-by footer on brand panel */
.lv2-brand-footer {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    opacity: .6;
}

.lv2-brand-footer img {
    max-height: 28px;
    max-width: 110px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ── RIGHT — form panel ────────────────────────────────────── */
.lv2-form-panel {
    flex: 0 0 420px;
    width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 44px 44px;
    position: relative;
}

/* top-right language selector — inside the form panel */
.lv2-lang-row {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lv2-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    font-family: inherit;
}

.lv2-lang-btn:hover,
.lv2-lang-btn:focus {
    border-color: var(--main-color, #696cff);
    background: #f0f0ff;
    color: #374151;
    text-decoration: none;
    outline: none;
}

.lv2-lang-btn img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.lv2-lang-btn i { font-size: .75rem; color: #9ca3af; }

.lv2-lang-btn.dropdown-toggle::after {
    display: none !important;
}

.lv2-lang-menu {
    min-width: 168px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
    padding: 6px 0 !important;
    right: 0 !important;
    left: auto !important;
}

.lv2-lang-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 9px 16px !important;
    font-size: .84rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.lv2-lang-menu .dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.lv2-lang-menu .dropdown-item img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

/* mobile-only logo row inside form */
.lv2-mobile-logo {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

.lv2-mobile-logo img {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.lv2-mobile-logo span {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

/* heading */
.lv2-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.lv2-subtitle {
    font-size: .88rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ── form fields ── */
.lv2-field {
    margin-bottom: 18px;
}

.lv2-label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.lv2-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.lv2-input-wrap:focus-within {
    border-color: var(--main-color, #696cff);
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(105,108,255,.13);
}

.lv2-input-icon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #c0c8d4;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
    transition: color .18s;
}

.lv2-input-wrap:focus-within .lv2-input-icon {
    color: var(--main-color, #696cff);
}

.lv2-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    padding: 12px 12px 12px 0;
    font-size: .94rem;
    font-weight: 500;
    color: #111827;
    font-family: inherit;
    line-height: 1;
}

.lv2-input-wrap input::placeholder {
    color: #c9d0da;
    font-weight: 400;
}

/* password toggle */
.lv2-pw-toggle {
    all: unset;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #c0c8d4;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: color .15s;
}

.lv2-pw-toggle:hover { color: #6b7280; }

/* ── error alert ── */
.lv2-alert {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid rgba(255,77,79,.25);
    background: rgba(255,77,79,.08);
    color: #c62828;
}

.lv2-alert.show { display: flex; }
.lv2-alert i { font-size: 1.05rem; flex-shrink: 0; }

/* ── submit button ── */
.lv2-btn-submit {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin-top: 24px;
    border-radius: 12px;
    background: var(--main-color, #696cff);
    color: #ffffff;
    font-size: .96rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: .01em;
    font-family: inherit;
    transition: opacity .18s, transform .15s, box-shadow .18s;
    box-shadow: 0 4px 14px rgba(105,108,255,.30);
}

.lv2-btn-submit:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(105,108,255,.38);
}

.lv2-btn-submit:active:not(:disabled) {
    transform: translateY(0);
    opacity: .95;
}

.lv2-btn-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.lv2-btn-submit i { font-size: 1.1rem; }

/* ── footer logos ── */
.lv2-footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f1f3;
}

.lv2-footer-logos img {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
    opacity: .60;
}

/* copyright */
.lv2-copy {
    margin-top: 20px;
    font-size: .75rem;
    color: #c0c8d4;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
    .lv2-card {
        flex-direction: column;
        max-width: 480px;
        min-height: unset;
    }

    /* hide brand panel on tablet/mobile — show compact logo in form instead */
    .lv2-brand { display: none; }

    .lv2-form-panel {
        flex: 1;
        width: 100%;
        padding: 52px 32px 36px;
    }

    .lv2-mobile-logo { display: flex; }
}

@media (max-width: 480px) {
    .lv2-page { padding: 16px 12px; }

    .lv2-form-panel { padding: 48px 22px 32px; }

    .lv2-card {
        border-radius: 18px;
        box-shadow: 0 6px 24px rgba(0,0,0,.09);
    }
}
