﻿@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
            direction: rtl;
            box-sizing: border-box;
        }

        body, html {
            height: 100%;
            margin: 0;
            padding: 0;
                font-family: 'Vazir';

            overflow-x: hidden; /* جلوگیری از اسکرول افقی */
            overflow-y: hidden; /* جلوگیری از اسکرول افقی */
        }

        /* بک‌گراند تصویری */
        body {
            background: url('../../../../1.webp') no-repeat center center fixed;
            background-size: cover;
            position: relative;
        }

        /* Overlay تیره */
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.6);
            z-index: 0;
        }

        /* Container اصلی */
        .login-container {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px; /* اضافه کردن padding برای موبایل */
        }

        .login-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            padding: 30px 20px;
            width: 100%;
            max-width: 400px; /* حداکثر عرض برای موبایل */
            color: white;
            animation: fadeIn 1s ease;
        }

        .login-card h2 {
            margin-bottom: 20px;
            font-weight: bold;
            font-size: 1.5rem; /* اندازه فونت مناسب برای موبایل */
        }

        .form-control {
            padding: 12px 15px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            border-radius: 8px;
            width: 100%;
            font-size: 16px; /* جلوگیری از زوم در iOS */
        }

        .form-control:focus {
            background: rgba(255,255,255,0.3);
            color: white;
            box-shadow: 0 0 10px rgba(255,255,255,0.5);
            outline: none;
        }

        .btn-login {
            border-radius: 50px;
            background: #ff416c;
            background: linear-gradient(to right, #ff4b2b, #ff416c);
            border: none;
            padding: 12px;
            font-weight: bold;
            transition: 0.4s;
            width: 100%;
            color: white;
            font-size: 16px;
            cursor: pointer;
        }

        .btn-login:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(255,255,255,0.3);
        }

        .form-check-label {
            color: white;
            margin-right: 5px;
        }

        .form-check {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .form-check-input {
            margin-right: 0;
            margin-left: 8px;
        }

        .text-muted a {
            color: #ffcccb;
            text-decoration: none;
        }

        .text-muted a:hover {
            text-decoration: underline;
        }

        .signin {
            text-decoration: none;
            color: pink;
        }

        .input-group {
            margin-bottom: 15px;
            width: 100%;
        }

        .text-center {
            text-align: center;
        }
        /* انیمیشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسپانسیو برای صفحه نمایش کوچک */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 15px;
        margin: 10px;
    }

        .login-card h2 {
            font-size: 1.3rem;
        }

    .form-control {
        padding: 10px 12px;
    }
}