@font-face {
    font-family: 'DroidNaskh';
    src: url('../fonts/DroidNaskh-Regular.woff2') format('woff2'),
         url('../fonts/DroidNaskh-Regular.woff') format('woff'),
         url('../fonts/DroidNaskh-Regular.ttf') format('truetype'),
         url('../fonts/DroidNaskh-Regular.eot');
    font-weight: normal;
    font-style: normal;
}

/* کل صفحه لاگین */
body.login {
    font-family: 'DroidNaskh', Tahoma, Arial, sans-serif;
    direction: rtl;
    background: #f5f6f7;
}

/* کادر اصلی لاگین */
body.login #container {
    width: 360px;
    margin: 80px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}


body.login .custom-header {
    text-align: center;       /* وسط صفحه */
    direction: rtl;           /* راست‌چین کردن متن */
    margin-bottom: 20px;
}

body.login .custom-header h1 {
    font-family: 'DroidNaskh', Tahoma, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
}


/* لیبل‌ها */
body.login .form-row label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

/* اینپوت‌ها */
body.login .form-row input {
    text-align: rtl;
    width: 90%;
    padding: 6px 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* کپچا */
body.login .captcha {
    margin-top: 10px;
}

/* دکمه ورود */
body.login .submit-row input[type="submit"] {
    width: auto;
    min-width: 90px;
    padding: 6px 14px;
    font-size: 14px;
    font-family: 'DroidNaskh', Tahoma, Arial, sans-serif;
    margin: 10px auto 0;
    display: block;
}

/* لینک‌ها (فراموشی رمز و ...) */
body.login a {
    font-size: 13px;
}

/* login-font.css */

/* مرکزچین کردن فرم login */
.login-form {
    width: 360px;
    margin: 50px auto;
    text-align: center;
    font-family: 'DroidNaskh', Tahoma, sans-serif;
}

/* کوچک کردن دکمه ورود */
input[type="submit"] {
    width: auto;
    padding: 6px 20px;
    font-size: 14px;
}

/* فونت فیلدهای ورودی */
input[type="text"], input[type="password"] {
    font-family: 'DroidNaskh', Tahoma, sans-serif;
    font-size: 14px;
}

/* راست‌چین کردن label ها و متن‌ها */
label {
    display: block;
    text-align: right;
    margin-bottom: 5px;
}

/* ==== FIX FINAL: DJANGO ADMIN LOGIN HEADER ==== */

body.login #header {
    text-align: center !important;
}

body.login #branding {
    float: none !important;
    width: 100%;
    text-align: center !important;
}

body.login #branding h1 {
    float: none !important;
    width: 100%;
    text-align: center !important;
    direction: rtl;
    font-family: 'DroidNaskh', Tahoma, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
}

/* اصلاح اندازه فونت هدر لینک‌دار */
body.login #branding h1 a {
    font-size: 20px;      /* یا 22px اگر خواستید */
    font-weight: normal;
    color: inherit;
    text-decoration: none;
}

/* اگر custom-header داری */
body.login .custom-header {
    width: 100%;
    text-align: center !important;
}

