@font-face {
    font-family: 'samim';
    src: url('../fonts/samim.eot?#') format('eot'), /* IE6â€“8 */
    url('../fonts/samim.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/samim.ttf') format('truetype'); /* Saf3â€”5, Chrome4+, FF3.5, Opera 10+ */
    font-weight: normal;
}

body {
    height: 100vh;
    background: url('../images/bg.jpg') 50% fixed;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: samim, sans-serif;
}

.error-box {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    top: 30px;
    direction: rtl;
    text-align: right;
    font-family: 'samim';
    font-size: 12px;
    background-color: #f2dede;
}


.error-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    line-height: 20px;
    padding: 7px;
}

h5 {
    color: #FFF;
    margin: 5px 0;
    font-weight: normal;
}

input:focus {
    outline: none;
}

.wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}

.login {
    padding: 10px 20px 20px 20px;
    width: 90%;
    max-width: 320px;
    position: relative;
    padding-bottom: 80px;
}

.login-box input[type="text"], .login-box input[type="password"] {
    width: 100%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 12px 10px 12px 55px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
    font-family: 'samim', "Open Sans", sans-serif;
    height: 45px;
}

.login-box textarea {
    width: 100%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 12px 10px 12px 55px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
    font-family: 'samim', "Open Sans", sans-serif;
}

.login-box button, .login-box input[type="submit"] {
    width: 100%;
    margin-top: 10px;
    padding: 9px 0;
    color: #68c9d0;
    background: #FFF;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.text-box, .password-box {
    position: relative;
}

.login-box .fa {
    background: #8bc6ce;
    color: #FFF;
    padding: 11px 15px;
    position: absolute;
    border-radius: 5px 0px 0 5px;
    top: 11px;
    left: 1px;
    height: 21px;
}

.forgot a {
    position: relative;
    top: 5px;
}

.fa-user-o, .fa-lock {
    font-size: 18px;
}

.fa-lock {
    padding: 11px 17px !important;
}

.option-box {
    margin-top: 40px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    font-size: 12px;
}

    .option-box input[type="checkbox"] {
        background: #FFF;
    }

    .option-box span.spnlbl {
        position: relative;
        color: #FFF;
        left: 20px;
        top: 3px;
    }

.login p {
    color: #FFF;
    font-size: 12px;
    text-align: center;
    direction: rtl;
    font-family: 'samim'
}

    .login p a {
        font-family: 'samim'
    }

.login {
    text-align: center;
    margin: auto;
}

a {
    color: #FFF;
    text-decoration: none;
}

hr {
    margin-top: 15px;
    border-color: #FFF;
}

.squaredFour {
    position: relative;
    top: 2px;
}

    .squaredFour label {
        width: 20px;
        height: 20px;
        cursor: pointer;
        position: absolute;
        top: 0;
        left: 0;
        background: #8bc6ce;
        border-radius: 4px;
        border: 1px solid #FFF;
    }

        .squaredFour label:after {
            content: "";
            width: 9px;
            height: 5px;
            position: absolute;
            top: 4px;
            left: 4px;
            border: 3px solid #fcfff4;
            border-top: none;
            border-right: none;
            background: transparent;
            opacity: 0;
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

        .squaredFour label:hover::after {
            opacity: 0.5;
        }

    .squaredFour input[type="checkbox"] {
        visibility: hidden;
    }

        .squaredFour input[type="checkbox"]:checked + label:after {
            opacity: 1;
        }

.eyd img {
    /*width:65px;*/
    height: auto;
    position: relative;
    /*top:50px;*/
}

.help-modal {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: none;
    justify-content: center;
    align-items: center;
}

    .help-modal.show {
        display: flex;
    }

    .help-modal .overlay {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(255,255,255,.42);
    }

    .help-modal .modal-content {
        z-index: 99;
        background: white;
        border-radius: 7px;
    }

        .help-modal .modal-content input, .help-modal .modal-content textarea {
            text-align: right;
            padding: 10px;
        }

        .help-modal .modal-content .modal-header {
            background: #8dc5ce;
            padding: 15px;
            text-align: right;
            color: white;
            font-size: 18px;
            font-weight: bold;
            border-radius: 7px 7px 0 0;
        }

        .help-modal .modal-content .modal-body {
            text-align: right;
            padding: 10px;
            background: rgba(143,196,206,.28);
        }

            .help-modal .modal-content .modal-body .modal-input {
                margin: 15px 0;
            }

.modal-footer {
    display: flex;
    justify-content: space-between;
    border-radius: 0 0 7px 7px;
}

.close-btn {
    margin: 10px;
    padding: 10px 20px;
    background: white;
    border-radius: 7px;
    border: 2px solid #8fc4ce;
    color: #8fc4ce;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.submit-btn {
    margin: 10px;
    padding: 10px 20px;
    background: #8fc4ce;
    border-radius: 7px;
    color: white;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

textarea {
    resize: vertical;
}


.DivPrograssBars_Center {
    left: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    background: #d8d8d8;
    filter: alpha(opacity=80);
    -moz-opacity: .8;
    opacity: .8;
    width: 100%;
    height: 100%;
    z-index: 999999999999999999;
}

    .DivPrograssBars_Center img {
        position: relative;
        top: 40%;
        z-index: 999999999999999999;
    }

.login-box input.state {
    color: #fff;
    background-color: #28a745;
    border: 2px solid;
    font-weight: bold;
}

.eyd2 img {
    /*width:65px;*/
    height: auto;
    position: relative;
    /*top:50px;*/
}
/* The Modal (background) */
.ebcf_modal {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    font-family: "samim";
}

/* Modal Content */
.ebcf_modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    top: 35%;
    position: relative;
    text-align: center;
}

/* The Close Button */
.ebcf_close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .ebcf_close:hover,
    .ebcf_close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

.btn-ok {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.forgot {
    text-align: left;
    margin: 10px 0;
}

    .forgot a {
        background: #8dc5ce;
        padding: 10px 20px;
        border-radius: 7px;
        color: white;
        font-size: 14px;
        font-weight: bold;
        border: 2px solid;
    }

.help {
    display: flex;
}

    .help a {
        color: #952a34;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: auto;
        background: white;
        padding: 10px;
        border-radius: 7px;
        box-shadow: 0px 0px 8px 2px #952a34;
        font-weight: bold;
    }

.alert-error, .error-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    text-align: center !important;
    letter-spacing: 0 !important;
    font-size: 14px;
    display: block;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    text-align: center !important;
}

@media(max-width:768px) {
    .ebcf_modal-content {
        width: 80%;
        top: initial;
    }
}


/* انیمیشن ساده برای لوگو */
@keyframes logoBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-10px);
    }
}

img {
    animation: logoBounce 10s infinite;
}

/* انیمیشن حرکت دکمه‌ها */
@keyframes buttonMove {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}

/* انیمیشن فید-این برای پیام‌ها */
.alert-error,
.error-danger,
.alert-success {
    animation: fadeIn 1.5s ease-in-out;
}


#Norooz img {
    all: unset; /* بازنشانی تمامی استایل‌های پیش‌فرض */
    display: inline-block; /* بازگرداندن به حالت اصلی */
    width: 100px; /* تنظیم اندازه */
    margin: 10px; /* فاصله‌گذاری مناسب */
}
