/* اگر نسخه Variable دارید (فایل نامش مثل Vazirmatn[wght].woff2 است): */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/fonts/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'Vazirmatn', sans-serif;
}

html, body {
    font-family: 'Vazirmatn', sans-serif;
}

/* پس‌زمینه و چینش کلی */
:root {
    --bg1: #f7f7fb;
    --bg2: #eef2ff;
    --card: #ffffff;
    --text: #222;
    --muted: #6b7280;
    --primary: #4f46e5;
    --primary-700: #4338ca;
    --border: #e5e7eb;
    --danger: #b91c1c;
    --shadow: 0 10px 30px rgba(0, 0, 0, .07);
    --radius: 16px;
    --font: IRANSans, Vazirmatn, Tahoma, "Segoe UI", Arial, sans-serif;
}

body {
}

@media print {
    .no-print {
        display: none !important;
    }
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
}

.auth-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px;
}

.brand {
    text-align: center;
    margin-bottom: 18px
}

.brand .logo {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand h1 {
    font-size: 20px;
    margin: 10px 0 4px
}

.brand .muted {
    color: var(--muted);
    font-size: 13px;
    margin: 0
}

.alert {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 10px 12px;
    border-radius: 10px;
    margin: 10px 0 14px;
}

.field {
    margin: 12px 0
}

.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px
}

.input {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 44px 0 44px; /* جا برای آیکن و دکمه */
}

.input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12)
}

.input-control {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 12px 0;
    font-size: 14px;
    background: transparent;
    direction: rtl;
}

.icon {
    position: absolute;
    right: 12px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle {
    position: absolute;
    left: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    color: #9ca3af;
}

.toggle.on {
    color: var(--primary)
}

.error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px
}

/* دکمه‌ها و لینک‌ها */
.btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: transform .05s ease, background .2s ease;
}

.btn:hover {
    background: var(--primary-700)
}

.btn:active {
    transform: translateY(1px)
}

.links {
    text-align: center;
    margin-top: 10px
}

.links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px
}

.links a:hover {
    text-decoration: underline
}

.auth-footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px
}

/* واکنش‌گرا */
@media (max-width: 480px) {
    .auth-card {
        padding: 22px 18px
    }
}


/*هدر*/
body {
    /*margin: 0;*/
    /*font-family: Tahoma, Arial, sans-serif;*/
}

:root {
    --blue: #0d47a1;
    --blue-hover: #1565c0;
    --silver-1: #f0f0f0;
    --silver-2: #929292;
    --text: #1f2937;
    --shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--text)
}

.top-bar {
    height: 28px;
    background: linear-gradient(to bottom, #d2bc93 40%, #5b5026);
}

.sub-bar {
    height: 110px;
    background: radial-gradient(circle, #eeeeee, #c3bcaa, #d2bc93);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow);
    position: relative; /* برای قرارگیری منوی کشویی */
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto
}

.brand img {
    height: 100px;
    width: 150px;
    display: block
}

.hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .05);
    background: #ffffff80;
    transition: background .25s, border-color .25s
}

.hamburger:hover {
    background: #fff;
    border-color: #e5e7eb
}

.hamburger span {
    width: 28px;
    height: 3.5px;
    background: var(--blue);
    border-radius: 2px;
    transition: transform .25s, opacity .25s
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg)
}

.hamburger.active span:nth-child(2) {
    opacity: 0
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

/* منوی کشویی: بدون بک‌دراپ، فقط به اندازه محتوا */
.drawer {
    position: absolute;
    top: 82px;
    right: 0;
    width: 260px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s ease, opacity .25s ease;
    z-index: 50; /* بالاتر از محتوا، پایین‌تر از هدر */
}

.drawer.open {
    max-height: none;
    opacity: 1;
    pointer-events: auto
}

.drawer header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eee
}

.drawer header .ttl {
    font-weight: 700
}

.drawer nav {
    padding: 8px
}

.nav-group {
    margin: 8px 0
}

.nav-group h6 {
    margin: 8px 12px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 4px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text)
}

.nav-item:hover {
    background: #f3f4f6
}

.nav-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--blue)
}

.page {
    padding: 22px
}

@media (max-width: 640px) {
    .sub-bar {
        height: 74px;
        padding: 0 16px
    }

    .brand img {
        height: 48px
    }

    .drawer {
        top: 74px;
        width: min(92vw, 320px)
    }
}

.menu-with-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--blue);
}

.auth-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF80; /* پس‌زمینه روشن */
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    margin-right: 12px;
}

.auth-box .welcome {
    font-size: 14px;
    font-weight: 600;
    color: #374151; /* خاکستری تیره */
}

.logout-btn,
.login-btn {
    background: #0d47a1;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}

.logout-btn:hover,
.login-btn:hover {
    background: #1565c0; /* آبی روشن‌تر هنگام هاور */
}

.d-flex {
    display: flex;
    gap: .5rem;
}

/* جایگزین d-flex بوت‌استرپ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: .5rem 1rem;
    border-radius: .75rem;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-outline-secondary {
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline-secondary:hover {
    background: #f9fafb;
}

/*for persian digits*/
.fa-num {
    direction: rtl;
    unicode-bidi: plaintext;
}

/* لایه تار برای خواناتر شدن متن */



.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.hero-text a {
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.hero-text a:hover {
    background: #0056b3;}

.down-bar {
    height: 28px;
    background: linear-gradient(to bottom, #d2bc93 40%, #5b5026);
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    color: #24344e;
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}