html {
    font-size: 14px;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/lib/fonts/Vazirmatn-Medium.ttf');
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: "Vazirmatn";
    font-feature-settings: "ss01";
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* تنظیمات کانتینر اصلی برای وسط چین کردن فرم در صفحه */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* یا با توجه به ارتفاع صفحه */
    direction: rtl; /* برای زبان فارسی */
    font-family: 'Tahoma', sans-serif; /* یا هر فونت فارسی که دارید */
}

/* طراحی کارت اصلی */
.login-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
    }

/* هدر فرم */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h2 {
        font-weight: 700;
        color: #333;
        margin-bottom: 0.5rem;
    }

    .login-header p {
        color: #777;
        font-size: 0.9rem;
    }

/* استایل لیبل‌ها */
.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.85rem;
}

/* استایل اینپوت‌ها */
.custom-input {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

    .custom-input:focus {
        border-color: #007bff; /* رنگ اصلی برند شما */
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
        outline: none;
    }

/* استایل دکمه ورود */
.btn-login {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .btn-login:hover {
        background: linear-gradient(45deg, #0056b3, #004085);
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
        transform: scale(1.02);
    }

    .btn-login:active {
        transform: scale(0.98);
    }

/* فوتر فرم (لینک‌های کمکی) */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

    .login-footer span {
        font-size: 0.85rem;
        color: #007bff;
        cursor: pointer;
        transition: color 0.2s;
    }

        .login-footer span:hover {
            color: #0056b3;
            text-decoration: underline;
        }

.message-text {
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: right;
}
