/*@font-face {*/
/*    font-family: Yekan Bakh FaNum;*/
/*    font-style: normal;*/
/*    font-weight: normal;*/
/*    src: url('../../../static/fonts/woff/YekanBakhFaNum-Regular.woff') format('woff');*/
/*}*/
@import url(fontiran.css);

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

    font-family: "PeydaWebFaNum" !important;
    direction: rtl;
}

.login-bg {
    min-height: 100vh;
    min-width: 100vw;
    background: -webkit-linear-gradient(to right, #abbaab, #ffffff); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #abbaab, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    max-width: 350px;
    width: 98vw;
    margin: 0 auto;
    padding: 14px 24px 28px 24px;
    /*border-radius: 16px;*/
    /*background: #fff;*/
    /*box-shadow: 0 4px 24px #34466613;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadein 0.6s;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.22);
    border-radius: 46px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8.5px);
    -webkit-backdrop-filter: blur(8.5px);
    border: 1px solid rgba(255, 255, 255, 0.63);
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h2 {
    text-align: center;
    margin-bottom: 22px;
    font-size: 1.21rem;
    color: #3a9336;
    font-weight: bold;
}

.login-error {
    color: #e53935;
    background: #fbe9e7;
    border-radius: 60px;
    text-align: center;
    font-size: 0.99rem;
    margin-bottom: 16px;
    padding: 8px 15px 7px 15px;
}

.login-box form {
    width: 100%;
    margin-top: 7px;
}

.form-row {
    margin-bottom: 15px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    font-family: "PeydaWebFaNum" !important;
    width: 100%;
    padding: 11px;
    border-radius: 28px;
    border: 1px solid #fff;
    font-size: 1rem;
    background: #fff;
    transition: border 0.18s;
    outline: none;
    box-sizing: border-box;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border: 1.4px solid #3a9336;
    background: #fff;
}

.login-box button[type="submit"] {
    font-family: "PeydaWebFaNum" !important;
    width: 100%;
    background: linear-gradient(135deg, #3a9336 75%, #3a9336 100%);
    color: #fff;
    font-size: 1.08rem;
    font-weight: bold;
    padding: 12px 0;
    border-radius: 29px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.login-box button[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #1f274b 0%, #3a9336 100%);
    color: #fff;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}


.login-box button[type="submit"] > * {
    position: relative;
    z-index: 1; /* تا متن دکمه همیشه روی لایه‌ها بمونه */
}

.login-box button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.login-box button[type="submit"]:hover::before {
    opacity: 1;
}

.login-box button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.login-logo {
    text-align: center;
    margin-bottom: -50px; /* فاصله از عنوان */
    margin-top: -20px;
}

.login-logo img {
    max-width: 250px; /* حداکثر عرض */
    width: 60%; /* نسبت عرض به والد برای موبایل */
    height: auto; /* حفظ نسبت تصویر */
    display: inline-block;
}

/* ریسپانسیو موبایل */
@media (max-width: 450px) {
    .login-box {
        padding: 20px 4vw 18px 4vw;
        max-width: 79vw;
    }

    .login-box h2 {
        font-size: 1rem;
    }

    .login-box button[type="submit"] {
        font-size: 1rem;
    }

    .login-logo img {
        /*max-width: 140px;*/
        width: 50%;
        margin-bottom: 0;
    }

}
