﻿@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: bold;
    src: url(/fonts/IRANSansX/IRANSansXFaNum-Bold.woff) format("woff"),url(/fonts/IRANSansX/IRANSansXFaNum-Bold.woff2) format("woff"),url(/fonts/IRANSansX/IRANSansXFaNum-Bold.ttf) format("truetype")
}

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

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 500;
    src: url(/fonts/IRANSansX/IRANSansXFaNum-Medium.woff) format("woff"),url(/fonts/IRANSansX/IRANSansXFaNum-Medium.woff2) format("woff"),url(/fonts/IRANSansX/IRANSansXFaNum-Medium.ttf) format("truetype")
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 200;
    src: url(/fonts/IRANSansX/IRANSansXFaNum-Light.woff) format("woff"),url(/fonts/IRANSansX/IRANSansXFaNum-Light.woff2) format("woff"),url(/fonts/IRANSansX/IRANSansXFaNum-Light.ttf) format("truetype")
}

html {
    direction: rtl;
}

* {
    font-family: IRANSansX,serif;
}

body {
    background: #EEF8FF;
    color: #1B1D29;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    body::-webkit-scrollbar {
        display: none;
    }

a {
    text-decoration: none
}

.ltr {
    direction: ltr
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.input-group-prepend {
    margin-left: -1px;
}

.input-group-append, .input-group-prepend {
    display: -ms-flexbox;
    display: flex;
}

.form-label {
    font-weight: bold;
}

footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
}
/*-----------*/
#pageAlert button.close {
    position: absolute;
    top: 5px;
    left: 5px;
    background: transparent;
    border: none;
    color: rgb(255, 255, 255);
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
}

#pageAlert span {
    min-width: 300px;
    text-align: center;
    padding: 16px;
    color: #fff;
    border-radius: 10px;
    position: relative;
    display: block;
    margin-bottom: 5px;
    padding-left: 40px;
}

    #pageAlert span.danger {
        background-color: #dc3545;
    }

    #pageAlert span.success {
        background-color: #157347;
    }

        #pageAlert span.danger::after,
        #pageAlert span.success::after {
            background: #fff;
            bottom: 2px;
            position: absolute;
            right: 4px;
            left: 0px;
            content: '';
            height: 2px;
            z-index: 2;
            border-radius: 5px;
            animation: runProgress var(--ib-alert-duration, 5s) linear forwards;
        }

@keyframes runProgress {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}
/*-----------*/
@media only screen and (max-width:992px) {
    /* موبایل: اعلان‌ها پایین و وسط صفحه */
    #pageAlert {
        position: fixed;
        z-index: 2000;
        right: 16px;
        left: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        max-width: 420px;
        margin: 0 auto;
    }

        #pageAlert span {
            min-width: 0;
        }
}

@media only screen and (min-width:992px) {
    /* دسکتاپ: اعلان‌ها پایین سمت چپ */
    #pageAlert {
        position: fixed;
        z-index: 2000;
        left: 30px;
        bottom: 30px;
    }
}


/* ---------- پالت دور ۳ (صفحات ورود و فراموشی رمز) ---------- */
:root {
    --bs-primary: #5B4BDB;
    --bs-primary-rgb: 91, 75, 219;
    --bs-link-color: #5B4BDB;
    --bs-link-color-rgb: 91, 75, 219;
    --bs-border-radius: 10px;
}

.card {
    border: 1px solid #E6E8F0;
    border-radius: 14px;
    box-shadow: none !important;
}

.card-header {
    background: #fff;
    border-bottom-color: #E6E8F0;
    border-radius: 14px 14px 0 0 !important;
}

.form-control {
    border-color: #E6E8F0;
    border-radius: 10px;
    min-height: 44px;
}

    .form-control:focus {
        border-color: #5B4BDB;
        box-shadow: 0 0 0 3px rgba(91, 75, 219, .15);
    }

.form-label {
    font-weight: 500;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
}

.btn-primary {
    --bs-btn-bg: #5B4BDB;
    --bs-btn-border-color: #5B4BDB;
    --bs-btn-hover-bg: #4A3BC4;
    --bs-btn-hover-border-color: #4A3BC4;
    --bs-btn-active-bg: #4A3BC4;
    --bs-btn-active-border-color: #4A3BC4;
}

.btn-outline-primary {
    --bs-btn-color: #5B4BDB;
    --bs-btn-border-color: #E6E8F0;
    --bs-btn-hover-bg: #EEECFD;
    --bs-btn-hover-color: #5B4BDB;
    --bs-btn-hover-border-color: #E6E8F0;
}


/* =========================================================
   صفحات ورود (دور ۵)
   ========================================================= */
.ib-auth-body {
    background: #EEF8FF;
    min-height: 100vh;
}

.ib-auth {
    min-height: 100vh;
    display: flex;
    position: relative;
}

/* پنل رنگی: فقط تصویر، وسط افقی و عمودی (رنگ زمینه هم‌رنگ لبه‌های تصویر) */
.ib-auth-brand {
    flex: 0 0 44%;
    background: #5A43DC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
}

.ib-auth-illustration {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    /* لبه‌های تصویر با زمینه پنل یکی شود */
    -webkit-mask-image: radial-gradient(circle at center, #000 58%, transparent 71%);
    mask-image: radial-gradient(circle at center, #000 58%, transparent 71%);
}

/* اعتبار طراحی: پایین و وسط پنل رنگی */
.ib-auth-brand {
    position: relative;
}

    .ib-auth-brand .ib-auth-credit {
        position: absolute;
        right: 0;
        left: 0;
        bottom: 20px;
        text-align: center;
        font-size: 12px;
        color: rgba(255, 255, 255, .75);
    }

        .ib-auth-brand .ib-auth-credit a {
            color: #fff;
            font-weight: 500;
        }

            .ib-auth-brand .ib-auth-credit a:hover {
                text-decoration: underline;
            }

.ib-auth-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.ib-auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(27, 29, 41, .06);
    border: 1px solid #E6E8F0;
    border-radius: 20px;
    padding: 32px 28px;
}

.ib-auth-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.ib-auth-sub {
    color: #6B7080;
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

/* اگر زیر عنوان توضیح هست (فراموشی رمز)، فاصله عنوان تا توضیح کم باشد */
.ib-auth-title + .ib-auth-sub {
    margin-top: -16px;
}

.ib-auth-back {
    display: inline-block;
    font-size: 13px;
    color: #6B7080;
    margin-bottom: 16px;
}

.ib-auth-submit {
    min-height: 46px;
    margin-top: 6px;
}

.ib-auth-switch {
    text-align: center;
    font-size: 13px;
    color: #6B7080;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #E6E8F0;
}

.ib-auth-footer {
    margin-top: 20px;
    color: #9AA0B0;
}

.ib-input-icon {
    position: relative;
}

    /* آیکون فیلد (کاربر، قفل) سمت چپ؛ دکمه نمایش رمز سمت راست */
    .ib-input-icon > i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9AA0B0;
        pointer-events: none;
    }

    .ib-input-icon .form-control {
        padding-left: 40px;
        padding-right: 14px;
    }

    .ib-input-icon.has-action .form-control {
        padding-right: 44px;
    }

.ib-input-action {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6B7080;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

    .ib-input-action:hover {
        background: #EEF8FF;
    }

.ib-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ib-captcha .form-control {
        flex: 1;
        letter-spacing: 4px;
    }

        /* فاصله حروف فقط برای کد واردشده؛ متن راهنما (کد تصویر) عادی */
        .ib-captcha .form-control::placeholder {
            letter-spacing: normal;
        }

    .ib-captcha img {
        height: 44px;
        border-radius: 10px;
        border: 1px solid #E6E8F0;
        user-select: none;
    }

.ib-captcha-refresh {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #E6E8F0;
    background: #fff;
    color: #5B4BDB;
    flex-shrink: 0;
}

@media only screen and (max-width: 991.98px) {
    .ib-auth-brand {
        display: none;
    }

    .ib-auth-card {
        padding: 28px 20px;
        text-align: right;
    }

    .ib-auth {
        flex-direction: column;
    }

    .ib-auth-panel {
        flex: 1;
    }
}

/* موبایل: اعتبار طراحی وسط و زیر کادر ورود */
/* «تمامی حقوق محفوظ است» در سطر زیر اعتبار طراحی */
.ib-auth-credit .ib-auth-copyright {
    display: block;
    margin-top: 4px;
}

.ib-auth-panel .ib-auth-credit {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #6B7080;
}

    .ib-auth-panel .ib-auth-credit a {
        color: #5B4BDB;
    }
