/* تنظیمات کلی و فونت */
.custom-auth-container {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    max-width: 450px;
    margin: 50px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    box-sizing: border-box; /* اضافه شده برای محاسبه صحیح عرض */
}

/* اضافه کردن box-sizing برای تمام عناصر */
.custom-auth-container * {
    box-sizing: border-box;
}

/* عنوان‌ها */
.custom-auth-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

/* متن توضیحات */
.verification-text {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

/* گروه‌های فرم */
.custom-auth-container .form-group {
    margin-bottom: 20px;
}

/* برچسب‌ها */
.custom-auth-container label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

/* فیلدهای ورودی */
.custom-auth-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
    box-sizing: border-box;
}

.custom-auth-container input[type="text"]:focus {
    border-color: #49C1C3;
    outline: none;
}

/* دکمه‌ها */
.custom-auth-container button {
    width: 100%;
    padding: 12px;
    background-color: #15ACAE;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-auth-container button:hover {
    background-color: #49C1C3;
}

/* پیام‌ها */
#custom-auth-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.success {
    background-color: #d1fae5;
    color: #047857;
}

.info {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* جداکننده */
.custom-auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.custom-auth-separator::before,
.custom-auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.custom-auth-separator span {
    padding: 0 10px;
    color: #888;
    font-size: 14px;
}

/* کانتینر دکمه گوگل */
.custom-auth-google-login {
    width: 100%;
    margin-bottom: 20px;
}

/* دکمه گوگل - تغییر یافته */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* مرکز قرار دادن محتوا */
    width: 100%;
    padding: 12px 15px;
    background-color: #f5f5f5; /* رنگ پس‌زمینه خاکستری روشن */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s;
}

.google-btn:hover {
    background-color: #eaeaea; /* تغییر رنگ هنگام هاور */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.google-icon-wrapper {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    flex-shrink: 0;
}

.google-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-text {
    margin: 0;
    color: #555555; /* رنگ تیره‌تر برای متن */
    font-size: 14px;
    font-weight: 500;
}

/* لینک ارسال مجدد کد */
#custom-auth-resend-code {
    color: #00a4a7;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    width: 100%;
}

#custom-auth-resend-code:hover {
    text-decoration: underline;
}

/* کانتینر کد تأیید */
.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    direction: ltr; /* تنظیم جهت از چپ به راست */
}

/* مربع‌های کد تأیید */
.verification-code-box {
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
    text-align: center;
    font-size: 18px !important;
    font-weight: bold;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
}

.verification-code-box:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* استایل برای مربع‌های کد تأیید */
.verification-code-container {
    display: flex;
    justify-content: space-between;
    direction: ltr;
    margin: 10px 0;
}

.verification-code-box {
    width: 40px;
    height: 40px;
    margin: 0 5px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: text;
}

/* استایل برای دکمه ارسال مجدد کد غیرفعال */
#custom-auth-resend-code.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* استایل برای نمایش بهتر شمارش معکوس */
#resend-countdown {
    font-size: 14px;
    display: inline-block;
}

/* استایل برای کانتینر دکمه ارسال مجدد */
.resend-code-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* استایل برای وضعیت فوکوس روی مربع‌های کد */
.verification-code-box:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}