/* Start custom CSS *//* کانتینر اصلی */
.custom-digits-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    font-family: inherit;
    direction: rtl;
}

/* کارت سفید ۳۹۰ پیکسلی */
.custom-login-card {
    background-color: #ffffff;
    width: 390px;
    max-width: 100%;
    border: 1px solid rgba(102, 102, 102, 0.25);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* بخش هدر و لوگو */
.custom-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.custom-login-logo {
    max-height: 60px;
    display: block;
    margin: 0 auto;
}

/* استایل‌دهی به المان‌های درونی Digits */
.custom-login-card .digits-form-wrapper,
.custom-login-card .dig_lrf_box {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* عنوان و توضیحات فرم */
.custom-login-card .dig_lrf_heading,
.custom-login-card h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 12px !important;
    text-align: right !important;
}

/* فیلد ورودی شماره تماس */
.custom-login-card input[type="tel"],
.custom-login-card input[type="text"],
.custom-login-card input[type="password"] {
    width: 100% !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    height: 46px !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05) !important;
    box-sizing: border-box !important;
}

.custom-login-card input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* مخفی‌کردن انتخاب‌گر پیش‌شماره اضافه‌شده توسط دیجیتس */
.custom-login-card .countrycode_body.elementor-page-697 {
    border-radius: 8px 0 0 8px !important;
}

/* دکمه تایید / ارسال کد */
.custom-login-card button,
.custom-login-card input[type="submit"],
.custom-login-card .dig-custom-field-type-submit {
    display: block !important;
    width: 100% !important;
    background-color: #3b82f6 !important; /* رنگ اصلی دکمه */
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 18px !important;
    transition: background-color 0.2s ease !important;
}

.custom-login-card button:hover,
.custom-login-card input[type="submit"]:hover {
    background-color: #2563eb !important;
}

/* فیلد کد تایید ۴ رقمی مجزا (OTP Boxes) */
.custom-login-card .dig_otp_inputs {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    direction: ltr !important;
    margin: 20px 0 !important;
}

.custom-login-card .dig_otp_inputs input {
    width: 50px !important;
    height: 52px !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    padding: 0 !important;
}

.custom-login-card .dig_otp_inputs input:focus {
    border-color: #3b82f6 !important;
}

/* متن قوانین پایین برگه */
.custom-login-card .dig-terms,
.custom-login-card .custom-terms-text {
    font-size: 12px !important;
    color: #6b7280 !important;
    text-align: center !important;
    margin-top: 20px !important;
}

.custom-login-card .dig-terms a,
.custom-login-card .custom-terms-text a {
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}/* End custom CSS */