@font-face {
    font-family: "Kalameh-Bold";
    src: url('assets/fonts/Kalameh-Bold.ttf');
}

@font-face {
    font-family: "Kalameh-Medium";
    src: url('../fonts/Kalameh-Medium.ttf');
}

@font-face {
    font-family: "Kalameh-SemiBold";
    src: url('../fonts/Kalameh-SemiBold.ttf');
}

@font-face {
    font-family: "Kalameh Regular";
    src: url('../fonts/Kalameh\ Regular.ttf');
}

@font-face {
    font-family: "Kalameh(FaNum)-Light";
    src: url('../fonts/Kalameh\(FaNum\)-Light.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== تغییر اصلی: مدیریت دسکتاپ و موبایل ========== */
/* در موبایل: body همان پس‌زمینه تصویری را دارد */
/* در دسکتاپ: body پس‌زمینه آبی ساده می‌گیرد و محتوا وسط می‌آید */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: "Kalameh(FaNum)-Light";
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-container-wrapper {
    background: url(../images/bg-img.png) no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 740px;
    width: 100%;
    max-width: 385px;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* در موبایل (عرض کمتر از 768px) */
@media (max-width: 767px) {
    body {
        background-size: cover;
        padding: 16px;
    }

    .mobile-container-wrapper {
        max-width: 100%;
    }
}

/* در دسکتاپ (عرض بیشتر یا مساوی 768px) */
@media (min-width: 768px) {
    body {
        background: #e8f0fe;
        /* رنگ آبی درخواستی شما */
        padding: 40px 20px;
    }

    .mobile-container-wrapper {
        max-width: 385px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border-radius: 48px;
    }
}

/* کارت اصلی با افکت شیشه‌ای آبی */
.mainn-content {
    width: 100%;
    height: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card {
    max-width: 360px;
    width: 100%;
    height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: linear-gradient(129deg, #274367ad, #1d5da78a);
    backdrop-filter: blur(1px);
    border-radius: 48px 48px 48px 48px;
    padding: 15px;
    transition: all 0.2s ease;
    box-shadow: inset 0px 3px 8px rgb(49 99 166);
}

/* عنوان */
.title {
    font-size: 32px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-family: "Kalameh-Medium";
    font-weight: 800;
    text-align: center;
    color: white;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
    text-shadow: 0 1px 0px rgba(0, 0, 0, 0.2);
}

/* گروه فیلدها */
.field-group {
    margin-bottom: 28px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #e0f0ff;
    margin-bottom: 8px;
    padding-right: 8px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-fild {
    width: 100%;
    color: #ffffff;
    font-size: 22px;
    margin-right: 12px;
}

.mobile-input-wrapper {
    background: rgb(93 143 193 / 68%);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 2px 20px;
    gap: 8px;
}

.mobile-input-wrapper i {
    color: white;
    font-size: 18px;
    opacity: 0.9;
}

.mobile-input-wrapper input {
    flex: 1;
    background: transparent;
    direction: rtl;
    border: none;
    padding: 14px 0;
    color: white;
    font-size: 16px;
    outline: none;
}

.mobile-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* فیلد کد معرف */
.code-field {
    background: rgb(93 143 193 / 68%);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 2px 20px;
    gap: 8px;
}

.code-field i {
    color: white;
    font-size: 18px;
    opacity: 0.9;
}

.code-field input {
    flex: 1;
    direction: rtl;
    background: transparent;
    border: none;
    padding: 14px 0;
    color: white;
    font-size: 16px;
    outline: none;
}

.code-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* دکمه‌ها با آیکون */
.button-group {
    display: flex;
    gap: 15px;
    margin: 12px 0 28px 0;
}

.btn {
    flex: 1;
    border: none;
    padding: 5px 8px;
    border-radius: 120px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    backdrop-filter: blur(4px);
}

.btn-primary {
    background: linear-gradient(5deg, #0e1998, #115da95e);
    color: white;
    border: 1.5px solid rgb(0 173 239);
}

.btn-primary:active {
    transform: scale(0.97);
    background: linear-gradient(5deg, #0e1998, #115da95e);
}

.btn-secondary {
    background: linear-gradient(173deg, #afc7e0, #4d7ab0);
    backdrop-filter: blur(8px);
    color: white;
    border: 1.5px solid rgb(233 233 234);
}

.btn-secondary:active {
    transform: scale(0.97);
    background: linear-gradient(173deg, #afc7e0, #4d7ab0);
}

/* آیکون پایین (هماهنگ با تم آبی) */
.icon-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 26px;
    margin-bottom: 8px;
}

.brand-icon {
    height: 302px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    width: 385px;
}

input {
    font-family: inherit;
}

@media (max-width: 450px) {
    .card {
        padding: 15px;
    }

    .mobile-container-wrapper {
        background: url(../images/bg-img.png) no-repeat center center;
        width: 100%;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border-radius: 48px;
        height: 100%;
        box-shadow: none;
    }

    .mainn-content {
        gap: 15px;
    }

    .title {
        font-size: 28px;
    }

    .btn {
        font-size: 15px;
        padding: 12px 8px;
    }

    .brand-icon img {
        width: 100%;
        max-width: 385px;
    }
}