/* فونت‌های اصلی آروین دیزل */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular-39f59d88.woff2') format('woff2'),
         url('../fonts/Vazir-Regular-4383ae70.woff') format('woff'),
         url('../fonts/Vazir-Regular-715699d3.eot') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold-524a1823.eot') format('embedded-opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb-e3822f2d.woff2') format('woff2'),
         url('../fonts/IRANSansWeb-c6a0f738.woff') format('woff'),
         url('../fonts/IRANSansWeb-1068d2ce.eot') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb_Light.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan';
    src: url('../fonts/Yekan/فایل-مناسب.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

/* فونت یوزر اینترفیس اصلی */


/* بیضی کردن لوگو */
.logo-area img {
    width: 250px;
    height: 150px;
    border-radius: 50% / 40% !important;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px auto;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', 'IRANSansWeb', 'Yekan', 'Tahoma', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    position: relative;
    overflow-x: hidden;
}

/* پس‌زمینه افکت دار با تصویر کامیون */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/login_bg.png') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.8s ease;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 32px;
    padding: 40px 30px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-area {
    text-align: center;
    margin-bottom: 35px;
}

.logo-area i {
    font-size: 55px;
    color: #ffb347;
    background: rgba(0, 0, 0, 0.4);
    padding: 18px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.logo-area h2 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 28px;
    margin-bottom: 5px;
}

.logo-area p {
    color: #ddd;
    font-size: 14px;
    font-weight: 300;
}

.input-group-custom {
    position: relative;
    margin-bottom: 22px;
}

.input-group-custom i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffb347;
    font-size: 18px;
}

.input-group-custom input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 45px;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.input-group-custom input:focus {
    border-color: #ffb347;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(255, 180, 71, 0.5);
}

.input-group-custom input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.toggle-password {
    right: auto !important;
    left: 18px !important;
    cursor: pointer;
    color: #ccc !important;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 25px;
    color: #eee;
    font-size: 14px;
}

.remember-check {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-check input {
    width: 16px;
    height: 16px;
    accent-color: #ffb347;
}

.forgot-link {
    color: #ffb347;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #ffcc80;
}

.login-btn {
    width: 100%;
    background: linear-gradient(95deg, #ffb347, #ff8c00);
    border: none;
    padding: 14px;
    border-radius: 45px;
    font-weight: 600;
    font-size: 16px;
    color: #1e2a36;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    margin-top: 10px;
    cursor: pointer;
}

.login-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(95deg, #ffa01e, #ff7b00);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.error-message {
    text-align: center;
    margin-top: 18px;
    color: #ff6b6b;
    font-size: 13px;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px;
    border-radius: 30px;
    display: none;
}

.footer-note {
    text-align: center;
    margin-top: 35px;
    font-size: 12px;
    color: #bbb;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}


/* به style.css اضافه کنید */
.input-group-custom i:first-child {
    right: 15px;
    left: auto;
}

.toggle-password {
    left: 18px !important;
    right: auto !important;
}

.login-btn i {
    margin-right: 8px;
    margin-left: 0;
}

/* اصلاح فلش دکمه ورود */
.login-btn i.fa-arrow-left {
    transform: rotate(180deg); /* فلش به سمت چپ در RTL */
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* موبایل */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }
    .logo-area i {
        font-size: 45px;
    }
}