
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    width: 100%;
    min-height: 100%;
}
body {
    font-family: "Cairo", Arial, sans-serif;
    background: #03050a;
    color: #fff;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: -50%;
    z-index: -3;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(0, 204, 255, .18),
            transparent 25%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(0, 102, 255, .14),
            transparent 25%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(0, 217, 255, .11),
            transparent 30%
        );
    animation:
        backgroundMove 12s ease-in-out infinite alternate;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            rgba(0,0,0,.42),
            rgba(0,0,0,.82)
        ),
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(0,0,0,.5) 80%
        );
}
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #00d9ff;
    box-shadow:
        0 0 6px #00d9ff,
        0 0 14px rgba(0,217,255,.7);
    opacity: .45;
    animation:
        floatParticle linear infinite;
}
.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
}
.login-card {
    width: 100%;
    max-width: 430px;
    padding:
        30px
        27px
        25px;
    position: relative;
    background:
        linear-gradient(
            145deg,
            rgba(15,22,35,.97),
            rgba(4,8,15,.98)
        );
    border:
        1px solid
        rgba(0,217,255,.22);
    border-radius: 26px;
    box-shadow:
        0 25px 80px
        rgba(0,0,0,.65),
        0 0 35px
        rgba(0,217,255,.08),
        inset 0 1px 0
        rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    animation:
        cardIn 1s
        cubic-bezier(.2,.8,.2,1);
}
.login-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 27px;
    padding: 1px;
    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(0,217,255,.7),
            transparent,
            rgba(0,217,255,.25),
            transparent
        );
    background-size: 300% 300%;
    animation:
        borderMove 5s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0)
        content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.logo-box {
    text-align: center;
    margin-bottom: 12px;
}
.logo {
    width: 145px;
    max-width: 65%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(
            0 0 7px
            rgba(0,217,255,.45)
        )
        drop-shadow(
            0 0 25px
            rgba(0,217,255,.18)
        );
    animation:
        logoFloat 3.5s
        ease-in-out infinite;
}
.welcome {
    text-align: center;
    margin:
        5px 0 25px;
    direction: rtl;
}
.welcome-small {
    display: block;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow:
        0 0 8px
        rgba(255,255,255,.55),
        0 0 18px
        rgba(0,217,255,.45);
    animation:
        welcomeFade 1.5s ease both;
}
.welcome-title {
    position: relative;
    display: inline-block;
    direction: ltr;
    font-size:
        clamp(
            30px,
            8vw,
            42px
        );
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 2px;
    color: transparent;
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #00d9ff 25%,
            #ffffff 48%,
            #00d9ff 70%,
            #ffffff 100%
        );
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    filter:
        drop-shadow(
            0 0 6px
            rgba(0,217,255,.7)
        )
        drop-shadow(
            0 0 22px
            rgba(0,217,255,.35)
        );
    animation:
        titleShine 3s linear infinite,
        titlePulse 2.4s
        ease-in-out infinite;
}
.panel-title {
    position: relative;
    margin-top: 9px;
    direction: ltr;
    font-family:
        "Cairo",
        Arial,
        sans-serif;
    font-size:
        clamp(
            15px,
            4vw,
            20px
        );
    font-weight: 800;
    letter-spacing: 2px;
    color: transparent;
    background:
        linear-gradient(
            90deg,
            #ffffff,
            #00d9ff,
            #ffffff,
            #00d9ff,
            #ffffff
        );
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    filter:
        drop-shadow(
            0 0 5px
            rgba(0,217,255,.6)
        )
        drop-shadow(
            0 0 14px
            rgba(0,217,255,.25)
        );
    animation:
        titleShine 3.5s
        linear infinite,
        panelPulse 2.8s
        ease-in-out infinite;
}
.reseller-title {
    margin-top: 2px;
    direction: ltr;
    font-size:
        clamp(
            12px,
            3vw,
            15px
        );
    font-weight: 700;
    letter-spacing: 4px;
    color: #00d9ff;
    text-shadow:
        0 0 5px
        rgba(0,217,255,.8),
        0 0 12px
        rgba(0,217,255,.55),
        0 0 25px
        rgba(0,217,255,.25);
    animation:
        resellerPulse 2.5s
        ease-in-out infinite;
}
.divider {
    width: 100%;
    height: 1px;
    margin:
        0 auto
        23px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,217,255,.7),
            rgba(255,255,255,.7),
            rgba(0,217,255,.7),
            transparent
        );
    box-shadow:
        0 0 10px
        rgba(0,217,255,.35);
}
.input-group {
    position: relative;
    margin-bottom: 16px;
}
.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform:
        translateY(-50%);
    font-size: 19px;
    color: #00d9ff;
    text-shadow:
        0 0 8px
        rgba(0,217,255,.65);
    z-index: 2;
}
.input {
    width: 100%;
    height: 57px;
    padding:
        0 50px
        0 16px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    background:
        rgba(255,255,255,.045);
    border:
        1px solid
        rgba(255,255,255,.09);
    border-radius: 15px;
    transition: .3s ease;
    direction: rtl;
}
.input::placeholder {
    color:
        rgba(255,255,255,.38);
}
.input:focus {
    border-color:
        rgba(0,217,255,.65);
    background:
        rgba(0,217,255,.055);
    box-shadow:
        0 0 0 3px
        rgba(0,217,255,.07),
        0 0 20px
        rgba(0,217,255,.10);
}
.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin:
        3px 3px 20px;
    font-size: 12px;
    color:
        rgba(255,255,255,.62);
}
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.remember input {
    display: none;
}
.check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border:
        1px solid
        rgba(0,217,255,.4);
    background:
        rgba(0,217,255,.04);
    position: relative;
    transition: .25s;
}
.remember input:checked
+ .check {
    background: #00bfe9;
    box-shadow:
        0 0 10px
        rgba(0,217,255,.55);
}
.remember input:checked
+ .check::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform:
        translate(-50%,-55%);
    color: #001018;
    font-weight: 900;
}
.login-btn {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    color: #001018;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            100deg,
            #00a9d4,
            #00e5ff,
            #ffffff,
            #00e5ff,
            #00a9d4
        );
    background-size: 250% auto;
    box-shadow:
        0 8px 25px
        rgba(0,217,255,.22),
        0 0 20px
        rgba(0,217,255,.12);
    animation:
        buttonGradient 3s linear infinite;
    transition:
        transform .2s,
        box-shadow .2s;
}
.login-btn:hover {
    transform:
        translateY(-2px);
    box-shadow:
        0 12px 35px
        rgba(0,217,255,.32),
        0 0 30px
        rgba(0,217,255,.18);
}
.login-btn:active {
    transform:
        translateY(1px)
        scale(.99);
}
.login-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 25%;
    height: 100%;
    transform:
        skewX(-20deg);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.75),
            transparent
        );
    animation:
        buttonSweep 2.8s infinite;
}
.footer {
    text-align: center;
    margin-top: 21px;
    color:
        rgba(255,255,255,.36);
    font-size: 11px;
}
.footer strong {
    color:
        rgba(0,217,255,.72);
    text-shadow:
        0 0 8px
        rgba(0,217,255,.3);
}
@keyframes backgroundMove {
    0% {
        transform:
            translate(-2%, -2%)
            scale(1);
    }
    100% {
        transform:
            translate(2%, 2%)
            scale(1.08);
    }
}
@keyframes cardIn {
    from {
        opacity: 0;
        transform:
            translateY(35px)
            scale(.94);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
        filter: blur(0);
    }
}
@keyframes borderMove {
    0% {
        background-position:
            0% 50%;
    }
    100% {
        background-position:
            300% 50%;
    }
}
@keyframes logoFloat {
    0%,100% {
        transform:
            translateY(0);
    }
    50% {
        transform:
            translateY(-5px);
    }
}
@keyframes welcomeFade {
    from {
        opacity: 0;
        transform:
            translateY(10px);
    }
    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}
@keyframes titleShine {
    0% {
        background-position:
            200% center;
    }
    100% {
        background-position:
            -200% center;
    }
}
@keyframes titlePulse {
    0%,100% {
        filter:
            drop-shadow(
                0 0 5px
                rgba(0,217,255,.55)
            )
            drop-shadow(
                0 0 15px
                rgba(0,217,255,.25)
            );
    }
    50% {
        filter:
            drop-shadow(
                0 0 11px
                rgba(0,217,255,.95)
            )
            drop-shadow(
                0 0 32px
                rgba(0,217,255,.55)
            );
    }
}
@keyframes panelPulse {
    0%,100% {
        transform:
            scale(1);
        filter:
            drop-shadow(
                0 0 5px
                rgba(0,217,255,.5)
            );
    }
    50% {
        transform:
            scale(1.025);
        filter:
            drop-shadow(
                0 0 12px
                rgba(0,217,255,.9)
            );
    }
}
@keyframes resellerPulse {
    0%,100% {
        opacity: .65;
        letter-spacing: 4px;
    }
    50% {
        opacity: 1;
        letter-spacing: 5px;
    }
}
@keyframes buttonGradient {
    0% {
        background-position:
            200% center;
    }
    100% {
        background-position:
            -200% center;
    }
}
@keyframes buttonSweep {
    0% {
        left: -50%;
    }
    45%,100% {
        left: 140%;
    }
}
@keyframes floatParticle {
    from {
        transform:
            translateY(110vh)
            translateX(0);
    }
    to {
        transform:
            translateY(-10vh)
            translateX(80px);
    }
}
@media (max-width: 480px) {
    .page {
        padding:
            18px 12px;
    }
    .login-card {
        padding:
            25px
            19px
            21px;
        border-radius: 22px;
    }
    .logo {
        width: 125px;
    }
    .welcome-title {
        font-size: 31px;
    }
    .welcome-small {
        font-size: 15px;
    }
    .panel-title {
        font-size: 15px;
        letter-spacing: 1.5px;
    }
    .reseller-title {
        font-size: 12px;
    }
    .input {
        height: 54px;
    }
    .login-btn {
        height: 55px;
    }
}
