﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Yekan Bakh FaNum";
    background: #edf2f7;
    overflow: hidden;
}
body {
    background: url('../js/images/back_full.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.login-page {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end; /* سمت راست */
    align-items: center; /* وسط عمودی */
    padding-right: 2%;
}
@media (min-width:1601px) {

    .login-page {
        padding-right: 8%;
    }
}

.login-right {
    width: 400px;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
}

.logo-box {
    text-align: center;
    margin-bottom: 45px;
}

    .logo-box img {
        width: 230px;
    }
@media(max-width:992px) {

    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
    }

    .login-card {
        width: 92%;
        max-width: 480px;
    }
}

.LogoBox {
    text-align: center;
    margin-bottom: 45px;
}

.JamakiLogo {
    width: 220px;
}

.ERPTitle {
    margin-top: 18px;
    font-family: "Yekan Bakh FaNum";
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255,255,255,.75);
}
.InputGroup {
    margin-bottom: 15px;
}
.LoginInput {
    width: 100%;
    height: 58px;
    border: none;
    outline: none;
    padding: 0 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    font-family: "Yekan Bakh FaNum";
    font-size: 15px;
    transition: .25s;
    box-shadow: 0 6px 15px rgba(0,0,0,.08);
}

    .LoginInput:focus {
        box-shadow: 0 0 0 4px rgba(76,204,215,.25), 0 10px 25px rgba(0,0,0,.18);
    }
.LoginButton {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 18px;
    font-family: "Yekan Bakh FaNum";
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg,#31d4de,#1897db);
    box-shadow: 0 18px 35px rgba(0,180,255,.30);
    transition: .25s;
}

    .LoginButton:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 45px rgba(0,180,255,.45);
    }
.LoginButton {
    overflow: hidden;
    position: relative;
}

    .LoginButton:before {
        content: '';
        position: absolute;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
        transition: .7s;
    }

    .LoginButton:hover:before {
        left: 100%;
    }
.InputBox {
    position: relative;
    margin-bottom: 15px;
}
.InputIcon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #4cccd7;
    pointer-events: none;
    transition: .3s;
}
.LoginInput {
    padding-right: 55px;
}
.InputBox:focus-within .InputIcon {
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.LoginInput:focus {
    background: white;
    border: none;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76,204,215,.25), 0 18px 40px rgba(0,0,0,.20);
}
.LoginInput::placeholder {
    font-family: "Yekan Bakh FaNum";
    color: #9aa5b1;
}
.Validator {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,90,90,.15);
    border: 1px solid rgba(255,90,90,.4);
    border-radius: 12px;
    font-size: 13px;
    color: #ffb3b3;
    font-family: "Yekan Bakh FaNum";
}
.CaptchaBox {
    display: flex;
    gap: 12px;
    align-items: center;
}

.CaptchaImage {
    position: relative;
    width: 150px;
}

    .CaptchaImage img {
        width: 100%;
        height: 58px;
        border-radius: 14px;
        display: block;
    }

.RefreshCaptcha {
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    transition: .25s;
}

    .RefreshCaptcha:hover {
        background: #4cccd7;
        color: white;
        transform: rotate(180deg);
    }
#FailureText {
    display: block;
    margin: 15px 0;
    padding: 14px;
    background: #ffebee;
    border-right: 5px solid #f44336;
    border-radius: 12px;
    font-family: "Yekan Bakh FaNum";
    font-size: 14px;
    color: #b71c1c;
}
.InputGroup {
    position: relative;
    margin-bottom: 18px;
}

    .InputGroup > i:first-child {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: #87b7ff;
        pointer-events: none;
    }

.TogglePassword {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #7b8797;
    transition: .25s;
}

    .TogglePassword:hover {
        color: #4cccd7;
    }

.InputGroup .LoginInput {
    padding-right: 52px;
    padding-left: 52px;
}
.InputGroup:focus-within i {
    color: #4cccd7;
    transition: .25s;
}

.InputGroup:focus-within {
    transform: translateY(-2px);
    transition: .25s;
}
.LoginCard {
    animation: LoginShow .8s ease;
}

@keyframes LoginShow {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
.LoginCard {
    background: rgba(18,35,71,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.LoginLogo {
    width: 180px;
    margin: auto;
    display: block;
    margin-bottom: 35px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
}
@media(max-width:900px) {

    body {
        background: #0f4c81;
    }

    .LoginWrapper {
        right: 0;
        left: 0;
        width: 90%;
        margin: auto;
    }
}
.SecurityQuizModal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
    z-index: 999999;
}

.SecurityQuizCard {
    width: 700px;
    max-width: 90%;
    background: #fff;
    margin: 80px auto;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    animation: fade .3s;
}

@keyframes fade {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

