﻿/* ============================================================
   UECC LOGIN PAGE
   Isolated login-page stylesheet
   Does NOT modify site.css
   ============================================================ */


/* ============================================================
   ROOT / PAGE
   ============================================================ */

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

    body.login-body {
        position: relative;
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
        background: radial-gradient( circle at 15% 20%, rgba(28, 118, 189, 0.16), transparent 35% ), radial-gradient( circle at 80% 80%, rgba(13, 148, 136, 0.10), transparent 35% ), #071f35;
    }


/* ============================================================
   MAIN WRAPPER
   ============================================================ */

.login-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}


/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */

.login-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient( 115deg, #071f35 0%, #0a2f4f 42%, #0d3d66 72%, #08263f 100% );
}


/* Moving atmospheric light */

.login-orb {
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.16;
    animation: login-orb-float 14s ease-in-out infinite alternate;
}

.login-orb-1 {
    top: -22%;
    left: -8%;
    background: #1c76bd;
}

.login-orb-2 {
    right: 15%;
    bottom: -30%;
    background: #0d9488;
    animation-delay: -5s;
}

.login-orb-3 {
    top: 30%;
    left: 38%;
    width: 22vw;
    height: 22vw;
    background: #155f9c;
    opacity: 0.11;
    animation-duration: 18s;
}


/* ============================================================
   PERSPECTIVE GRID
   ============================================================ */

.login-grid {
    position: absolute;
    inset: -20%;
    opacity: 0.18;
    background-image: linear-gradient( rgba(255, 255, 255, 0.075) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px );
    background-size: 70px 70px;
    transform: perspective(700px) rotateX(62deg) scale(1.5) translateY(15%);
    transform-origin: center bottom;
    animation: login-grid-move 18s linear infinite;
}


/* ============================================================
   SCAN LINES
   ============================================================ */

.login-scan-line {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(13, 148, 136, 0.0), rgba(13, 148, 136, 0.65), rgba(28, 118, 189, 0.0), transparent );
    opacity: 0.5;
    transform: rotate(-17deg);
    animation: login-scan 9s ease-in-out infinite;
}

.login-scan-line-1 {
    top: 28%;
}

.login-scan-line-2 {
    top: 68%;
    animation-delay: -4s;
}


/* ============================================================
   PARTICLES
   ============================================================ */

.login-particles {
    position: absolute;
    inset: 0;
}

    .login-particles span {
        position: absolute;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.55);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
        animation: login-particle 6s ease-in-out infinite;
    }

        .login-particles span:nth-child(1) {
            left: 12%;
            top: 20%;
            animation-delay: -1s;
        }

        .login-particles span:nth-child(2) {
            left: 25%;
            top: 67%;
            animation-delay: -4s;
        }

        .login-particles span:nth-child(3) {
            left: 38%;
            top: 30%;
            animation-delay: -2s;
        }

        .login-particles span:nth-child(4) {
            left: 52%;
            top: 78%;
            animation-delay: -5s;
        }

        .login-particles span:nth-child(5) {
            left: 62%;
            top: 18%;
            animation-delay: -3s;
        }

        .login-particles span:nth-child(6) {
            left: 72%;
            top: 56%;
            animation-delay: -1.5s;
        }

        .login-particles span:nth-child(7) {
            left: 82%;
            top: 31%;
            animation-delay: -4.5s;
        }

        .login-particles span:nth-child(8) {
            left: 91%;
            top: 72%;
            animation-delay: -2.5s;
        }

        .login-particles span:nth-child(9) {
            left: 18%;
            top: 84%;
            animation-delay: -5.5s;
        }

        .login-particles span:nth-child(10) {
            left: 44%;
            top: 11%;
            animation-delay: -3.5s;
        }

        .login-particles span:nth-child(11) {
            left: 68%;
            top: 88%;
            animation-delay: -1.8s;
        }

        .login-particles span:nth-child(12) {
            left: 86%;
            top: 13%;
            animation-delay: -4.2s;
        }


/* ============================================================
   BRAND PANEL
   ============================================================ */

.login-brand-panel {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: linear-gradient( 135deg, rgba(7, 31, 53, 0.25), rgba(10, 47, 79, 0.15) );
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    animation: login-panel-in 1s cubic-bezier(.22, 1, .36, 1) both;
}


.login-brand-content {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: clamp(35px, 5vw, 80px) clamp(35px, 6vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}


/* ============================================================
   BRAND LOGO
   ============================================================ */

.login-brand-logo {
    position: relative;
    z-index: 4;
    animation: login-logo-in 1s cubic-bezier(.22, 1, .36, 1) 0.15s both;
}

    .login-brand-logo img {
        display: block;
        width: clamp(145px, 15vw, 230px);
        height: auto;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: 0.96;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .login-brand-logo:hover img {
        transform: translateY(-3px);
        opacity: 1;
    }


/* ============================================================
   BRAND GLOW
   ============================================================ */

.login-brand-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    left: 12%;
    top: 20%;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(28, 118, 189, 0.15), transparent 68% );
    filter: blur(15px);
    animation: login-glow-breathe 7s ease-in-out infinite;
}


/* ============================================================
   ARCHITECTURAL VISUAL
   ============================================================ */

.login-architecture {
    position: absolute;
    left: 5%;
    right: 2%;
    top: 8%;
    bottom: 4%;
    overflow: hidden;
    opacity: 0.85;
    animation: login-architecture-in 1.6s cubic-bezier(.22, 1, .36, 1) 0.25s both;
}


/* Rings */

.login-architecture-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    transform-origin: center;
    animation: login-ring-rotate 25s linear infinite;
}

.ring-1 {
    width: 45%;
    aspect-ratio: 1;
    right: 7%;
    top: 19%;
}

.ring-2 {
    width: 62%;
    aspect-ratio: 1;
    right: -1%;
    top: 10%;
    border-color: rgba(13, 148, 136, 0.12);
    animation-direction: reverse;
    animation-duration: 32s;
}

.ring-3 {
    width: 78%;
    aspect-ratio: 1;
    right: -10%;
    top: 1%;
    border-color: rgba(28, 118, 189, 0.11);
    animation-duration: 40s;
}


/* Architectural lines */

.login-architecture-line {
    position: absolute;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.16), transparent );
    animation: login-line-pulse 5s ease-in-out infinite;
}

.line-1 {
    width: 85%;
    top: 28%;
    left: 0;
    transform: rotate(-13deg);
}

.line-2 {
    width: 65%;
    top: 48%;
    left: 15%;
    transform: rotate(24deg);
    animation-delay: -2s;
}

.line-3 {
    width: 75%;
    top: 67%;
    left: 5%;
    transform: rotate(-8deg);
    animation-delay: -3s;
}

.line-4 {
    width: 55%;
    top: 81%;
    left: 22%;
    transform: rotate(18deg);
    animation-delay: -1s;
}


/* ============================================================
   BUILDINGS
   ============================================================ */

.login-building {
    position: absolute;
    bottom: 9%;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    transform-origin: bottom;
    animation: login-building-rise 1.3s cubic-bezier(.22, 1, .36, 1) both;
}

    .login-building span {
        display: block;
        width: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: linear-gradient( 180deg, rgba(255, 255, 255, 0.04), rgba(28, 118, 189, 0.13) );
        box-shadow: inset 0 0 18px rgba(28, 118, 189, 0.06);
        animation: building-light 4s ease-in-out infinite;
    }


/* Building 1 */

.building-1 {
    right: 15%;
    height: 47%;
    gap: 9px;
    animation-delay: 0.3s;
}

    .building-1 span:nth-child(1) {
        height: 48%;
    }

    .building-1 span:nth-child(2) {
        height: 68%;
        animation-delay: -1s;
    }

    .building-1 span:nth-child(3) {
        height: 85%;
        animation-delay: -2s;
    }

    .building-1 span:nth-child(4) {
        height: 58%;
        animation-delay: -0.5s;
    }

    .building-1 span:nth-child(5) {
        height: 73%;
        animation-delay: -2.5s;
    }

    .building-1 span:nth-child(6) {
        height: 92%;
        animation-delay: -1.5s;
    }


/* Building 2 */

.building-2 {
    right: 42%;
    height: 34%;
    gap: 6px;
    opacity: 0.55;
    animation-delay: 0.45s;
}

    .building-2 span:nth-child(1) {
        height: 70%;
    }

    .building-2 span:nth-child(2) {
        height: 94%;
        animation-delay: -1.2s;
    }

    .building-2 span:nth-child(3) {
        height: 55%;
        animation-delay: -2.1s;
    }

    .building-2 span:nth-child(4) {
        height: 80%;
        animation-delay: -3s;
    }


/* Building 3 */

.building-3 {
    right: 2%;
    height: 25%;
    gap: 5px;
    opacity: 0.35;
    animation-delay: 0.6s;
}

    .building-3 span:nth-child(1) {
        height: 65%;
    }

    .building-3 span:nth-child(2) {
        height: 85%;
        animation-delay: -1s;
    }

    .building-3 span:nth-child(3) {
        height: 45%;
        animation-delay: -2s;
    }

    .building-3 span:nth-child(4) {
        height: 72%;
        animation-delay: -3s;
    }

    .building-3 span:nth-child(5) {
        height: 58%;
        animation-delay: -4s;
    }


/* Light beam */

.login-light-beam {
    position: absolute;
    right: 16%;
    bottom: 5%;
    width: 2px;
    height: 76%;
    background: linear-gradient( 180deg, transparent, rgba(13, 148, 136, 0.0), rgba(13, 148, 136, 0.6), transparent );
    transform: rotate(22deg) translateY(20%);
    transform-origin: bottom;
    opacity: 0.35;
    filter: blur(0.4px);
    animation: login-beam 6s ease-in-out infinite;
}


/* ============================================================
   LOGIN CARD
   ============================================================ */

.login-card {
    position: relative;
    z-index: 3;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98) );
    box-shadow: -25px 0 80px rgba(0, 0, 0, 0.16);
    animation: login-card-in 1s cubic-bezier(.22, 1, .36, 1) 0.1s both;
}


/* ============================================================
   CARD GLOW
   ============================================================ */

.login-card-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    right: -190px;
    top: -190px;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(13, 148, 136, 0.10), transparent 70% );
    pointer-events: none;
    animation: login-card-glow 8s ease-in-out infinite;
}


/* ============================================================
   CARD INNER
   ============================================================ */

.login-card-inner {
    position: relative;
    width: min(390px, calc(100% - 70px));
    max-height: calc(100dvh - 70px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: login-content-in 0.9s cubic-bezier(.22, 1, .36, 1) 0.35s both;
}


/* ============================================================
   LANGUAGE BUTTON
   ============================================================ */

.login-lang {
    position: absolute;
    top: 28px;
    right: 32px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 32px;
    padding: 6px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(10, 47, 79, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand-800, #0d3d66);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .login-lang:hover {
        transform: translateY(-2px);
        border-color: rgba(13, 148, 136, 0.35);
        box-shadow: 0 7px 20px rgba(10, 47, 79, 0.10);
    }


/* ============================================================
   LOGO
   ============================================================ */

.login-logo {
    margin-bottom: 22px;
    animation: login-content-item 0.7s cubic-bezier(.22, 1, .36, 1) 0.45s both;
}

    .login-logo img {
        display: block;
        width: 155px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }


/* ============================================================
   HEADING
   ============================================================ */

/* tasabih-20260909-center the app title on the login card */
.login-heading {
    margin-bottom: 30px;
    text-align: center;
    animation: login-content-item 0.7s cubic-bezier(.22, 1, .36, 1) 0.52s both;
}

    .login-heading h1 {
        margin: 0;
        color: var(--brand-900, #0a2f4f);
        font-size: clamp(25px, 2.2vw, 34px);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.6px;
    }

.login-heading-line {
    width: 46px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 10px;
    background: linear-gradient( 90deg, var(--accent, #0d9488), var(--brand-500, #1c76bd) );
    box-shadow: 0 0 14px rgba(13, 148, 136, 0.25);
    animation: login-heading-line 0.8s cubic-bezier(.22, 1, .36, 1) 0.7s both;
}


/* ============================================================
   ERROR
   ============================================================ */

.login-error {
    margin-bottom: 18px !important;
    animation: login-error-in 0.4s ease both;
}


/* ============================================================
   FIELDS
   ============================================================ */

.login-field {
    position: relative;
    margin-bottom: 21px !important;
    animation: login-content-item 0.7s cubic-bezier(.22, 1, .36, 1) both;
}

    .login-field:nth-of-type(1) {
        animation-delay: 0.58s;
    }

    .login-field:nth-of-type(2) {
        animation-delay: 0.66s;
    }


    /* Labels */

    .login-field label {
        display: block;
        margin-bottom: 8px;
        color: var(--brand-900, #0a2f4f);
        font-size: 13px;
        font-weight: 600;
    }


/* ============================================================
   INPUT
   ============================================================ */

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: rgba(10, 47, 79, 0.48);
    pointer-events: none;
    transition: color 0.25s ease, transform 0.25s ease;
}


/* Override global .input safely */

.login-input-wrap .input {
    width: 100% !important;
    min-height: 50px;
    box-sizing: border-box;
    padding-left: 48px !important;
    padding-right: 15px !important;
    border: 1px solid rgba(10, 47, 79, 0.14) !important;
    border-radius: 10px !important;
    background: rgba(248, 250, 252, 0.95) !important;
    color: var(--brand-900, #0a2f4f) !important;
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 5px rgba(10, 47, 79, 0.025);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

    .login-input-wrap .input:hover {
        border-color: rgba(10, 47, 79, 0.24) !important;
        background: #fff !important;
    }

    .login-input-wrap .input:focus {
        border-color: var(--accent, #0d9488) !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.09), 0 8px 25px rgba(10, 47, 79, 0.07);
        transform: translateY(-1px);
    }

.login-input-wrap:focus-within .login-input-icon {
    color: var(--accent, #0d9488);
    transform: scale(1.08);
}


/* ============================================================
   VALIDATION
   ============================================================ */

.login-field .val {
    display: block;
    margin-top: 5px;
    color: var(--danger, #dc3545);
    font-size: 11px;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.login-submit {
    position: relative;
    width: 100% !important;
    min-height: 52px;
    margin-top: 4px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient( 105deg, var(--brand-900, #0a2f4f), var(--brand-700, #104b7d), var(--accent, #0d9488) ) !important;
    background-size: 200% 100%;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(10, 47, 79, 0.20), 0 2px 5px rgba(10, 47, 79, 0.12);
    animation: login-content-item 0.7s cubic-bezier(.22, 1, .36, 1) 0.74s both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}

    .login-submit::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.18), transparent );
        transform: skewX(-20deg);
        transition: left 0.65s ease;
    }

    .login-submit:hover {
        transform: translateY(-2px);
        background-position: 100% 0;
        box-shadow: 0 15px 32px rgba(10, 47, 79, 0.25), 0 4px 10px rgba(10, 47, 79, 0.14);
    }

        .login-submit:hover::before {
            left: 140%;
        }

    .login-submit:active {
        transform: translateY(0);
        box-shadow: 0 7px 16px rgba(10, 47, 79, 0.18);
    }


/* ============================================================
   FOOTER / HINT
   ============================================================ */

.login-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    animation: login-content-item 0.7s cubic-bezier(.22, 1, .36, 1) 0.82s both;
}

    .login-footer > span {
        flex: 1;
        height: 1px;
        background: linear-gradient( 90deg, transparent, rgba(10, 47, 79, 0.11) );
    }

        .login-footer > span:last-child {
            background: linear-gradient( 90deg, rgba(10, 47, 79, 0.11), transparent );
        }

    .login-footer .hint {
        flex: 0 0 auto;
        max-width: 190px;
        margin: 0;
        color: rgba(10, 47, 79, 0.48);
        font-size: 11px;
        line-height: 1.5;
        text-align: center;
    }































/* ============================================================
   RTL
   ============================================================ */

html[dir="rtl"] .login-input-icon {
    left: auto;
    right: 16px;
}

html[dir="rtl"] .login-input-wrap .input {
    padding-left: 15px !important;
    padding-right: 48px !important;
}

html[dir="rtl"] .login-field {
    text-align: right;
}

html[dir="rtl"] .login-lang {
    right: auto;
    left: 32px;
}


/* Keep visual composition stable in RTL */

html[dir="rtl"] .login-wrap {
    direction: ltr;
}

html[dir="rtl"] .login-card {
    direction: rtl;
}

html[dir="rtl"] .login-brand-panel {
    direction: ltr;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

    .login-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    }

    .login-brand-content {
        padding: 45px;
    }

    .login-architecture {
        left: -10%;
        right: -15%;
    }

    .login-card-inner {
        width: min(350px, calc(100% - 50px));
    }
}


/* ============================================================
   MOBILE
   Same UECC visual identity as desktop
   ============================================================ */
/* ============================================================
   MOBILE - تحسين التمركز
   ============================================================ */

@media (max-width: 760px) {

    html,
    body {
        background: #071f35;
    }

        body.login-body {
            background: #071f35;
        }

    .login-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
        background: transparent;
    }

    /* إبقاء الخلفية المتحركة */
    .login-background {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    /* ضبط الشبكة في الخلفية */
    .login-grid {
        inset: -30% -80% -10% -80%;
        opacity: 0.14;
        background-size: 48px 48px;
        transform: perspective(550px) rotateX(62deg) scale(1.35) translateY(18%);
    }

    .login-orb {
        width: 75vw;
        height: 75vw;
        filter: blur(55px);
        opacity: 0.13;
    }

    .login-orb-1 {
        top: -20%;
        left: -30%;
    }

    .login-orb-2 {
        right: -30%;
        bottom: -15%;
    }

    .login-orb-3 {
        width: 45vw;
        height: 45vw;
        left: 30%;
        top: 35%;
    }

    .login-particles span {
        width: 2px;
        height: 2px;
        opacity: 0.5;
    }

    .login-scan-line {
        opacity: 0.25;
    }

    /* إخفاء اللوحة الجانبية */
    .login-brand-panel {
        display: none;
    }

    /* ====== بطاقة الدخول ====== */
    .login-card {
        position: relative;
        z-index: 3;
        width: auto; /* بدلاً من 100% */
        height: auto; /* بدلاً من 100dvh */
        min-height: unset; /* إلغاء الحد الأدنى */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible; /* بدلاً من hidden */
        background: transparent;
        box-shadow: none;
        padding: 10px;
    }

        /* إضافة توهج خلف البطاقة (اختياري) */
        .login-card::before {
            content: "";
            position: absolute;
            width: 360px;
            height: 360px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(13, 148, 136, 0.13), transparent 70%);
            filter: blur(20px);
            pointer-events: none;
            z-index: -1;
        }

    /* محتوى البطاقة */
    .login-card-inner {
        width: 80vw;
        max-height: calc(100dvh - 34px);
        box-sizing: border-box;
        padding: 30px 25px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 20px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 252, 0.94));
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28), 0 8px 25px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        /* تأكيد التمركز الأفقي والعمودي */
        margin: auto;
    }

    /* زر اللغة */
    .login-lang {
        top: 18px;
        right: 18px;
        background: rgba(255, 255, 255, 0.85);
        border-color: rgba(10, 47, 79, 0.10);
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    }

    /* الشعار */
    .login-logo {
        margin-bottom: 18px;
    }

        .login-logo img {
            width: 140px;
        }

    /* العنوان */
    .login-heading {
        margin-bottom: 25px;
    }

        .login-heading h1 {
            font-size: 24px;
        }

    /* الحقول */
    .login-field {
        margin-bottom: 17px !important;
    }

    .login-input-wrap .input {
        min-height: 49px;
    }

    /* زر الدخول */
    .login-submit {
        min-height: 50px;
    }

    .login-footer {
        margin-top: 20px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 400px) {

    .login-card-inner {
        width: calc(100% - 26px);
        padding: 25px 20px;
        border-radius: 17px;
    }

    .login-logo img {
        width: 125px;
    }

    .login-heading h1 {
        font-size: 22px;
    }

    .login-input-wrap .input {
        min-height: 47px;
    }

    .login-submit {
        min-height: 48px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .login-background *,
    .login-brand-panel *,
    .login-card *,
    .login-submit,
    .login-input-wrap .input,
    .login-lang {
        animation: none !important;
        transition: none !important;
    }
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes login-panel-in {

    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes login-card-in {

    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes login-content-in {

    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes login-content-item {

    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes login-logo-in {

    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }

    to {
        opacity: 0.96;
        transform: translateY(0) scale(1);
    }
}


@keyframes login-architecture-in {

    from {
        opacity: 0;
        transform: scale(1.06);
    }

    to {
        opacity: 0.85;
        transform: scale(1);
    }
}


@keyframes login-heading-line {

    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 46px;
        opacity: 1;
    }
}


@keyframes login-grid-move {

    from {
        transform: perspective(700px) rotateX(62deg) scale(1.5) translateY(15%);
    }

    to {
        transform: perspective(700px) rotateX(62deg) scale(1.5) translateY(21%);
    }
}


@keyframes login-orb-float {

    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(35px, -25px, 0) scale(1.06);
    }

    100% {
        transform: translate3d(-20px, 30px, 0) scale(0.96);
    }
}


@keyframes login-glow-breathe {

    0%, 100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


@keyframes login-card-glow {

    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}


@keyframes login-scan {

    0%, 100% {
        opacity: 0;
        transform: translateY(-60px) rotate(-17deg);
    }

    30% {
        opacity: 0.5;
    }

    65% {
        opacity: 0.35;
    }

    100% {
        opacity: 0;
        transform: translateY(160px) rotate(-17deg);
    }
}


@keyframes login-particle {

    0%, 100% {
        opacity: 0.15;
        transform: translateY(0) scale(0.8);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-18px) scale(1.3);
    }
}


@keyframes login-ring-rotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes login-line-pulse {

    0%, 100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.7;
    }
}


@keyframes login-building-rise {

    from {
        opacity: 0;
        transform: translateY(35px) scaleY(0.7);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}


@keyframes building-light {

    0%, 100% {
        background: linear-gradient( 180deg, rgba(255, 255, 255, 0.04), rgba(28, 118, 189, 0.13) );
    }

    50% {
        background: linear-gradient( 180deg, rgba(13, 148, 136, 0.12), rgba(28, 118, 189, 0.24) );
    }
}


@keyframes login-beam {

    0%, 100% {
        opacity: 0.15;
        transform: rotate(22deg) translateY(20%);
    }

    50% {
        opacity: 0.65;
        transform: rotate(22deg) translateY(-5%);
    }
}


@keyframes login-error-in {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   PASSWORD VISIBILITY TOGGLE
   ============================================================ */

.login-password-wrap .input {
    padding-right: 48px !important;
}

.login-password-toggle {
    position: absolute;
    right: 14px;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(10, 47, 79, 0.42);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .login-password-toggle:hover {
        color: var(--accent, #0d9488);
        background: rgba(13, 148, 136, 0.07);
        transform: scale(1.05);
    }

    .login-password-toggle:active {
        transform: scale(0.95);
    }

    .login-password-toggle:focus-visible {
        outline: 2px solid rgba(13, 148, 136, 0.35);
        outline-offset: 2px;
    }


/* RTL */

html[dir="rtl"] .login-password-wrap .input {
    padding-right: 48px !important;
    padding-left: 48px !important;
}

html[dir="rtl"] .login-password-toggle {
    right: auto;
    left: 14px;
}



/* ============================================================
   تحريك مشهد الإنشاءات (SVG)
   ============================================================ */

/* إضاءة النوافذ الوامضة */
.blink-light {
    animation: blink 2.5s ease-in-out infinite;
    filter: url(#glow);
}

@keyframes blink {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* دوران ذراع الرافعة ببطء شديد (حركة واقعية) */
.crane-jib {
    animation: crane-swing 12s ease-in-out infinite;
    transform-origin: 373px 80px; /* يجب أن يتطابق مع الإحداثيات في SVG */
}

@keyframes crane-swing {
    0% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-2deg);
    }
}

/* الشعاع الضوئي يتحرك في مسار دائري */
.moving-light {
    animation: light-drift 8s ease-in-out infinite alternate;
}

@keyframes light-drift {
    0% {
        transform: translate(20px, -20px) scale(1);
        opacity: 0.1;
    }

    100% {
        transform: translate(-60px, 30px) scale(1.4);
        opacity: 0.2;
    }
}

















/*.slogan {
    font-size: 1.4rem;*/
/*    color: rgba(255, 255, 255, 0.7);*/
/*color:red;
    font-family: emoji;
    font-style: italic;
}*/


























/* tasabih-20260909-construction tagline sits left of centre in cold steel tone */
.login-tagline {
    position: relative;
    z-index: 3;
    margin-right: clamp(80px, 22vw, 420px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    pointer-events: none;
    width: min(60%, 265px);
}

.login-tagline-text {
    margin: 0;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 600;
    font-size: clamp(1.05rem, 1.75vw, 1.5rem);
    line-height: 1.35;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(163, 191, 214, 0.78);
    text-shadow: 0 1px 12px rgba(4, 18, 32, 0.55);
}

/* tasabih-20260909-trolley loader on a beam, same line style as the crane */
.login-tagline-loader {
    position: relative;
    width: 148px;
    height: 16px;
}

.login-loader-beam {
    position: absolute;
    left: 0;
    top: 5px;
    width: 100%;
    height: 2px;
    background: linear-gradient( 90deg, rgba(163, 191, 214, 0.06), rgba(163, 191, 214, 0.4) 20%, rgba(163, 191, 214, 0.4) 80%, rgba(163, 191, 214, 0.06) );
}

.login-loader-ticks {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background-image: repeating-linear-gradient( 90deg, rgba(163, 191, 214, 0.26) 0 1px, transparent 1px 12px );
}

.login-loader-trolley {
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 5px;
    background: rgba(178, 205, 228, 0.5);
    animation: login-trolley-travel 4.2s ease-in-out infinite;
}

    .login-loader-trolley::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 7px;
        width: 1px;
        height: 8px;
        background: rgba(178, 205, 228, 0.35);
    }

@keyframes login-trolley-travel {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(136px);
    }
}


.bg-crane-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

    .bg-crane-scene svg {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .bg-crane-scene:hover {
        pointer-events: auto;
    }

        .bg-crane-scene:hover svg {
            transform: scale(1.03);
        }

/* حركة الذراع */
.crane-rotating {
    animation: crane-swing 16s ease-in-out infinite;
    transform-origin: 800px 286px;
    transition: all 0.6s ease;
}

.bg-crane-scene:hover .crane-rotating {
    animation-duration: 10s;
}

@keyframes crane-swing {
    0% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-2deg);
    }
}

/* أضواء وامضة */
.warning-light {
    animation: blink-warning 2.5s ease-in-out infinite;
}

.bg-crane-scene:hover .warning-light {
    animation-duration: 1.5s;
}

@keyframes blink-warning {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }
}

/* تنسيق الشاشات الصغيرة */
@media (max-width: 768px) {
    .bg-crane-scene svg {
        transform: scale(0.75);
        opacity: 0.7;
    }

    .bg-crane-scene:hover svg {
        transform: scale(0.78);
    }
}

@media (max-width: 480px) {
    .bg-crane-scene svg {
        transform: scale(0.55);
        opacity: 0.5;
    }

    .bg-crane-scene:hover svg {
        transform: scale(0.58);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-crane-scene *,
    .login-tagline-loader * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
