/* کانتینر اصلی */
.aml-login-container {
    width: 100%;
    margin: 0 auto;
    direction: rtl;
}

/* فرم‌ها */
.aml-form {
    display: flex;
    flex-direction: column;
}

/* گروه فیلدها */
.aml-form-group {
    margin-bottom: 15px;
}

/* فیلدهای ورودی */
.aml-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

/* دکمه‌ها */
.aml-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* باکس پیام */
.aml-form-message {
    display: none;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.8;
    text-align: right;
}

.aml-form-message.is-visible {
    display: block;
}

.aml-form-message-error {
    background: #fff1f1;
    border-color: #f1b2b2;
    color: #a61b1b;
}

.aml-form-message-success {
    background: #eefbf3;
    border-color: #b7e4c7;
    color: #17663a;
}

/* فوتر عمومی فرم */
.aml-form-footer {
    margin-top: 15px;
    text-align: center;
}

.aml-form-footer a {
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* لینک‌های بازیابی - کنار هم */
.aml-form-footer.aml-restore-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.aml-links-separator {
    color: #999;
    line-height: 1;
}


.aml-form-footer.aml-restore-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    padding: 4px 10px;
    border-radius: 6px;
}

.aml-form-footer.aml-restore-links a:hover {
    color: #0073aa;
    background-color: rgba(0, 115, 170, 0.08);
}

/* جداکننده بین لینک‌ها */
.aml-form-footer.aml-restore-links a + a::before {
    content: "|";
    color: #999;
    margin: 0 10px 0 0;
    position: relative;
    right: -10px;
}

/* پیغام کاربران لاگین شده */
.aml-logged-in {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    text-align: center;
}

.aml-static-welcome {
    margin-bottom: 15px;
}

.aml-logged-in-container {
    text-align: center;
}

.aml-logged-actions {
    margin-top: 12px;
}

.aml-logout-link {
    display: inline-block;
    text-decoration: none;
}

/* remember me */
.aml-remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* جهت هوشمند */
.aml-smart-dir,
.aml-smart-dir::placeholder {
    transition: all 0.2s ease;
}

.aml-dir-rtl {
    direction: rtl;
    text-align: right;
}

.aml-dir-ltr {
    direction: ltr;
    text-align: left;
}

/* دکمه فرم‌ها */
#aml-login-form .aml-btn,
#aml-forgot-form .aml-btn,
#aml-forgot-email-form .aml-btn,
#aml-otp-form .aml-btn {
    width: 100%;
}
.aml-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.otp-field {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-transform: uppercase;
}


/* ==========================================================================
   استایل‌های فرم ۶ خانه‌ای OTP ایمیل
   ========================================================================== */

/* نگهدارنده اصلی فیلدها */
#aml-email-otp-form .aml-otp-inputs {
    display: flex !important;
    flex-direction: row !important; /* چیدمان افقی در یک ردیف */
    justify-content: center !important; /* وسط‌چین کردن فیلدها */
    align-items: center !important;
    gap: 10px !important; /* فاصله بین فیلدها */
    direction: ltr !important; /* اجبار به چپ‌چین بودن برای قرارگیری صحیح اولین فیلد در سمت چپ */
    margin: 20px 0 !important;
}

/* استایل ظاهری هر کدام از فیلدهای ورودی */
#aml-email-otp-form .otp-field {
    width: 45px !important;
    height: 50px !important;
    text-align: center !important; /* قرار دادن کاراکتر در وسط کادر */
    font-size: 24px !important; /* اندازه بزرگتر برای خوانایی بهتر کد */
    font-weight: bold !important;
    direction: ltr !important; /* تایپ چپ به راست */
    border: 1px solid #d1d5db !important; /* حاشیه پیش‌فرض */
    border-radius: 8px !important; /* گوشه‌های گرد */
    padding: 0 !important;
    background-color: #f9fafb !important;
    color: #111827 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* حذف فلش‌های پیش‌فرض فیلدهای عددی (در صورتی که نوع فیلد به number تغییر کند) */
#aml-email-otp-form .otp-field::-webkit-outer-spin-button,
#aml-email-otp-form .otp-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* استایل فیلد هنگام فوکوس (کلیک شدن) */
#aml-email-otp-form .otp-field:focus {
    border-color: #2563eb !important; /* رنگ کادر در حالت انتخاب - می‌توانید تغییر دهید */
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

