/* ===================== عمومی ===================== */
/* تعریف فونت */
@font-face {
    font-family: 'IranNastaliq';
    src: url('font/Mitra.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* متغیرها */
:root {
    --card-bg: rgba(255, 255, 255, 0.95);
    --accent: #007BFF;
    --accent-hover: #0056b3;
    --text: #222;
    --input-bg: rgba(245,245,245,0.9);
    --input-border: rgba(0,0,0,0.2);
}

/* ریست ساده */
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    font-family: 'IranNastaliq', serif;
    background:transparent;
    color: var(--text);
}
/* ===================== ویدئو پس‌زمینه ===================== */
.bg-video {
    position: fixed;       /* ویدئو ثابت در پس‌زمینه */
    top: 0;                /* بالای صفحه */
    left: 0;               /* چپ صفحه */
    width: 100vw;           /* عرض کل صفحه */
    height: 100vh;          /* ارتفاع کل صفحه */
    object-fit: cover;      /* ویدئو تمام صفحه را پر کند بدون کشیدگی */
    z-index: -1;            /* پشت تمام المان‌ها */
    opacity: 0.9;           /* شفافیت دلخواه برای خوانایی فرم */
    pointer-events: none;   /* کلیک روی ویدئو تاثیری نداشته باشد */
}

/* برای مرورگرهایی که اندازه viewport را درست تشخیص نمی‌دهند */
@media (max-width: 768px) {
    .bg-video {
        object-fit: cover;
        opacity: 0.4;       /* برای موبایل کمی شفافیت بیشتر */
    }
}

/* ===================== کانتینر مرکز صفحه ===================== */
.center-wrap {
    min-height: 70vh;
    display: flex;
    flex-direction: column;   /* عناصر زیر هم قرار می‌گیرند */
    align-items: center;      /* وسط‌چین افقی */
    justify-content: center;  /* وسط‌چین عمودی */
    padding: 20px;
    direction: rtl;
    font-size: 20px;
    margin-top: 30px;
    gap: 20px;                /* فاصله بین عناصر */
}

.logo{
    border-radius: 0%;
    height: 120px;
    width: 120px;
}
/* ===================== کارت لاگین ===================== */
.login-container {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

/* ===================== عنوان ===================== */
.login-container h2 {
    margin: 0 0 18px 0;
    font-family: 'IranNastaliq', serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--accent);
}

/* ===================== فیلدها ===================== */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    height: 55px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-family: 'IranNastaliq', serif;
    font-size: 25px;
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s;
    background: var(--input-bg);
}
.login-container input:focus {
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    border-color: var(--accent);
}

/* ===================== دکمه ===================== */
.login-container button {
    width: 100%;
    margin-top: 16px;
    border: none;
    border-radius: 10px;
    font-family: 'IranNastaliq', serif;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: background 0.12s, transform 0.06s, box-shadow 0.12s;
}
.login-container button:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.login-container button:active {
    transform: translateY(1px);
}

/* ===================== پیام خطا ===================== */
.error {
    color: #b00020;
    font-family: 'IranNastaliq', serif;
    font-size: 40px;
    margin-top: 8px;
    text-align: center;
}

/* ===================== دسترسی ===================== */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

/* ===================== ریسپانسیو ===================== */
@media (max-width:420px) {
    .login-container {
        padding: 20px;
        border-radius: 12px;
    }
    .login-container input[type="text"],
    .login-container input[type="password"] {
        font-size: 40px;
        padding: 12px 14px;
    }
}
