﻿@media (min-width:0) {
    .sliders {
        height: 55vh;
        background-image: var(--dynamic-image, none), var(--dynamic-gradient, none);
        background-repeat: no-repeat, no-repeat;
        background-position: bottom, bottom;
        background-size: contain, cover;
        background-blend-mode: multiply;
        padding: var(--padding-container);
        box-sizing: border-box;
        margin: calc(-1 * var(--padding-container));
    }

    #navigationBar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        margin-bottom: 40px;
    }

        #navigationBar .item {
            width: 25%;
            height: 6px;
            background: #f2f3f699;
            border-radius: 32px;
            position: relative;
            overflow: hidden;
        }

            #navigationBar .item::before {
                content: '';
                position: absolute;
                top: 0;
                right: 0;
                width: 0;
                height: 100%;
                background: #fff;
            }

            #navigationBar .item.active::before {
                width: 100%;
                transition: 5s;
            }

    .slider {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: calc(100% - 20px);
    }

        .slider .title {
            color: #fff;
            text-align: center;
            font-size: 18px;
            font-weight: 800;
        }

        .slider p {
            font-weight: 370;
            color: #ffffffcc;
            width: 65%;
            text-align: center;
        }

        .slider .image {
            width: 150px;
            margin: auto;
            display: block;
            margin-top: 10px;
            transform: scale(0);
            opacity: 0;
        }

            .slider .image.animate {
                transform: scale(1);
                opacity: 1;
                transition: transform 0.6s ease, opacity 0.6s ease;
            }

    .fade-section {
        width: 100%;
        height: 10px;
        background: linear-gradient(0deg, #f2f3f6 0% 100%);
        box-shadow: 0 -12px 30px 40px #f2f3f6;
    }

    .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 20px 15px;
        border-radius: 16px;
        box-shadow: 0 10px 40px #10111333;
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        background: rgb(255 255 255 / 65%);
        width: 90%;
        max-width: 420px;
        margin: 0 auto; /* مهم */
        position: relative; /* مهم */
        z-index: 2;
    }

        .card > div {
            width: 100%;
        }

        .card b {
            font-weight: 800;
            font-size: 18px;
        }

        .card p {
            color: #74777C;
            font-weight: 370;
            width: 90%;
            margin: 1em auto;
            text-align: center;
        }

    .field {
        height: 52px;
        border: 1px solid #c9cbcf;
        background-color: #fff;
        border-radius: 12px;
        position: relative;
        margin-bottom: 17px;
        overflow: hidden;
        box-sizing: border-box;
    }

        .field input {
            width: 100%;
            height: 100%;
            border: none;
            outline: none;
            background: transparent;
            font-size: 14px;
            padding: 22px 10px 8px;
            box-sizing: border-box;
            position: relative;
            z-index: 1;
        }

        .field:has(input:focus) {
            border-color: #1159fc;
            background-color: #deedff;
        }

        .field .title {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            transition: .3s;
        }

        .field input:focus ~ span.title,
        .field input:not(:placeholder-shown) ~ span.title {
            top: 13px;
            font-size: 10px;
        }

        .field input:focus ~ span.title {
            color: var(--text-onback-low);
        }

        .field input:-webkit-autofill {
            -webkit-box-shadow: 0 0 0px 40rem #ffffff inset;
        }

            .field input:-webkit-autofill ~ span.title {
                z-index: 1;
            }

    .card input[type=submit] {
        width: 100%;
        height: 52px;
        border: none;
        font-weight: 370;
        font-size: 16px;
        color: #fff;
        cursor: default;
        opacity: .3;
        padding: 12px 24px;
        border-radius: 12px;
        background: var(--main-color);
        transition: .3s;
    }

    .card input.enable {
        opacity: 1;
        cursor: pointer;
    }

    .card input.fade {
        cursor: progress;
        opacity: .3;
        pointer-events: none;
    }

    .links {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        margin-top: 10px;
    }

        .links a {
            color: #1159FC;
        }

    .back {
        color: #000;
        display: block;
        text-align: center;
        margin-top: 10px;
    }

    #captchaCanvas {
        max-width: 30%;
    }
}


/* ====================== OTP Styles - کاملاً ریسپانسیو ====================== */
.otp-container {
    width: 100%;
    text-align: center;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px; /* فاصله بین جعبه‌ها */
    margin: 20px 0 30px;
    direction: ltr;
    width: 100%;
    max-width: 320px; /* حداکثر عرض کلی برای ۶ جعبه */
    margin-left: auto;
    margin-right: auto;
}

.otp-box {
    width: 100%; /* مهم: نسبت به والد */
    max-width: 48px; /* حداکثر اندازه هر جعبه */
    height: 56px;
    border: 1.5px solid #c9cbcf;
    border-radius: 12px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex: 1; /* خیلی مهم برای ریسپانسیو بودن */
}

    .otp-box:focus {
        border-color: #1159fc;
        background-color: #deedff;
        box-shadow: 0 0 0 3px rgba(17, 89, 252, 0.15);
    }


.otp-title {
    font-size: 20px;
    font-weight: 800;
    margin: 20px 0 8px;
}

.otp-subtitle {
    color: #74777C;
    font-size: 14px;
    margin-bottom: 25px;
}



.success-msg {
    background: #f0fdf4;
    color: #166534;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.green-check {
    color: #22c55e;
    font-size: 20px;
}

.btn-confirm {
    width: 100%;
    height: 52px;
    background: #15803d;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.btn-send-sms {
    width: 100%;
    height: 52px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

    .btn-send-sms:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

@media (min-width: 525px) {
}

/*@media (min-width: 768px) {
    .card {
        width: 90%;
        padding: 25px;
        margin: 391px auto 0px;
    }
}*/


@media (min-width:992px) {
}

@media (min-width:1200px) {
}

@media only screen and (max-width: 768px) and (min-width: 0) {
}

/* ====================== Media Queries ====================== */

/*@media (min-width: 0) {
    .card {
        margin-top: 409px;*/ /* همان مقدار قبلی برای موبایل و کوچک */
    /*}
}

@media (min-width: 525px) {
    .card {
        margin-top: 409px;
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .card {
        margin-top: 409px;
        width: 85%;
        max-width: 440px;
    }
}*/

/* از این به بعد برای صفحه‌های بزرگ‌تر کنترل می‌کنیم */
/*@media (min-width: 992px) {
    .card {
        margin-top: 380px;*/ /* کمی کمتر */
        /*width: 80%;
        max-width: 460px;
    }
}

@media (min-width: 1200px) {
    .card {
        margin-top: 360px;*/ /* کنترل شده */
        /*width: 75%;
        max-width: 480px;
    }
}*/

/* مهم‌ترین قسمت: وقتی صفحه خیلی پهن می‌شود (بالای ۱۶۰۰px) */
/*@media (min-width: 1600px) {
    .card {
        margin-top: 340px;*/ /* بیشتر از این پایین نیاد */
        /*width: 70%;
        max-width: 500px;
    }
}*/

/* اگر ارتفاع صفحه هم خیلی زیاد بود (مثلاً مانیتورهای بلند) */
/*@media (min-width: 1600px) and (min-height: 900px) {
    .card {
        margin-top: 538px;*/ /* حداکثر کنترل */
    /*}
}*/
/* برای صفحه‌های بزرگ‌تر (تبلت و دسکتاپ) */
@media (min-width: 525px) {
    .otp-inputs {
        max-width: 360px;
        gap: 12px;
    }

    .otp-box {
        max-width: 52px;
        height: 60px;
        font-size: 28px;
    }
}
/* وقتی صفحه خیلی کوچک باشه (موبایل خیلی narrow) */
@media (max-width: 360px) {
    .otp-inputs {
        gap: 6px;
        max-width: 290px;
    }

    .otp-box {
        max-width: 42px;
        height: 52px;
        font-size: 24px;
    }
}


/* تنظیم موقعیت کارت به صورت responsive */
@media (min-width: 0) and (max-width: 524px) {
    .card {
        margin-top: 38vh;     /* بهترین حالت برای موبایل */
    }
}

@media (min-width: 525px) and (max-width: 767px) {
    .card {
        margin-top: 42vh;
    }
}

@media (min-width: 768px) {
    .card {
        margin-top: 380px;    /* دسکتاپ و تبلت بزرگ */
        padding: 25px;
    }
}

@media (min-width: 992px) {
    .card {
        margin-top: 360px;
        max-width: 460px;
    }
}

@media (min-width: 1200px) {
    .card {
        margin-top: 340px;
        max-width: 480px;
    }
}

@media (min-width: 1600px) {
    .card {
        margin-top: 320px;
        max-width: 500px;
    }
}