/* ✅ فونت اصلی */
@font-face {
    font-family: 'YekanBakh';
    src: url('../font/woff2/YekanBakh-Regular.woff2') format('woff2'),
         url('../font/woff/YekanBakh-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/vazir/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
:root {
--white: #ffffff;
--cream: #fdedd9;
--orange: #f8991d;
--blue: #003f6b;
--dark: #2d2e2e;
--light-gray: #e0e0e0;
--green: #4CAF50;
--red: #E53935;
--info: #03A9F4;
--warning: #EF6C00;
--gray: #9E9E9E;
--light-bg: #f9fbfe;
--font-primary: 'Vazirmatn', sans-serif;
--font-secondary: 'YekanBakh', sans-serif;
--border-radius: 12px;
--transition: 0.3s ease-in-out;
--shadow-light: 0 2px 10px rgba(0,0,0,0.05);
--shadow-medium: 0 4px 20px rgba(0,0,0,0.08);
--btn-primary-bg: var(--blue);
--btn-primary-text: #ffffff;
--btn-secondary-bg: var(--orange);
--btn-secondary-text: #ffffff;
--input-bg: #f4f4f4;
--input-border: #9C9C9B;
}
/* ✅ تنظیمات کلی */
body {
      -webkit-appearance: none;   /* حذف استایل پیش‌فرض آیفون */
    background-color: #fffcf9; /* پس‌زمینه ملایم */
    font-family: 'Vazirmatn', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    color: #2d2e2e;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.logo {
  height: 50px;
}
/* ✅ استایل فرم ورود */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 15px;
}

.login-card {
    background-color: white;
    width: 100%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #f8991d; /* نوار بالایی 
}

.login-card h3 {
    font-size: 22px;
    font-weight: bold;
    color: #2d2e2e;
    margin-bottom: 20px;
    text-align: center;
}

/* ✅ استایل ورودی‌ها */
.form-control {
    border-radius: 8px;
    border: 1px solid #f8991d;
    padding: 10px;
    font-size: 14px;
    background-color:#fffcf9;
    direction: rtl;
}

.captcha{
    border-radius: 10px;
}

.form-control:focus {
    border-color:#2d2e2e ;
    box-shadow: 0 0 5px rgba(49, 141, 193, 0.5);
}

/* استایل دکمه ورود */
.login-btn {
    background-color: #f8991d; /* رنگ پس‌زمینه دکمه */
    color: white;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none; /* حذف بوردر */
}

/* فلش پنهان در ابتدا */
.login-btn i {
    opacity: 0; /* فلش در ابتدا پنهان است */
    margin-left: 10px; /* فاصله فلش از متن */
    font-size: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-btn:hover,
.login-btn:focus {
  background-color: #e38d1c !important;
  color: white !important;
}
.login-btn .spinner-border {
  color: white !important;
  border-color: white !important;
  border-right-color: transparent !important;
}


/* حالت فعال دکمه هنگام کلیک */
.login-btn:active {
    background-color: #e38d1c; /* رنگ نارنجی در حالت کلیک */

}

/* نمایان شدن فلش و حرکت آن */
.login-btn:hover i {
    opacity: 1; /* فلش در حالت هاور نمایان می‌شود */
    transform: translateX(-10px); /* فلش از سمت چپ به سمت دکمه حرکت می‌کند */
}

/* ✅ ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    .login-container {
        max-width: 90%;
    }

    .login-card {
        padding: 20px;
    }

    .login-card h3 {
        font-size: 20px;
    }

    .form-control {
        font-size: 13px;
    }

    .login-btn {
        /*font-size: 14px;*/
        /*padding: 8px;*/
    }
}

.input-with-icon {
  position: relative;
  margin-bottom: 15px;
}

.input-with-icon .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 14px;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 10px 15px;
  padding-right: 36px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 12px;
  background-color: #f9f9f9;
  text-align: right;
  outline: none;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: #f8991d; /* رنگ حاشیه */
    box-shadow: 0 0 3px rgba(248, 153, 29, 0.5); /* سایه */
    transition: all 0.4s ease; /* انیمیشن برای فوکوس */
}


input[type="text"], input[type="email"], input[type="password"] {
    font-size: 14px;
}

textarea {
    font-size: 14px;
}

/* ✅ استایل دکمه ارسال و دکمه پیوست */
.btn-outline-secondary {
    border-color: #f8991d;
    color: #f8991d;
}

.btn-outline-secondary:hover {
    background-color: #f8991d;
    color: white;
}

.spinner-border {
    border-color: #f8991d;
}

/* ✅ استایل برای متن‌های کوچک */
small {
    font-size: 12px;
    color: #555;
}
/* استایل فیلدها */
.verify-code {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    direction: ltr; /* اطمینان از وارد کردن اعداد از چپ به راست */
}

.verify-code:focus {
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    border-color: #aaa;
    outline: none;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    .verify-code {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin: 0 1px;
    }
}
/* تایمر */
#timer {
    color: #e74c3c; /* رنگ قرمز روشن */
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;  /* متن را وسط‌چین می‌کند */
    font-size: 12px;  /* اندازه فونت */
    margin-top: 20px;  /* فاصله از بالا */
}

/* ارسال مجدد کد تأیید */
#resend-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#resend-button {
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: var(--blue); /* رنگ اولیه */
    transition: all 0.3s ease;
    text-decoration: none !important;
}

#resend-button i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

#resend-button:hover {
    color: var(--orange); /* رنگ جدید در هاور */
}
#resend-button:hover i {
  animation: rotate 0.6s ;
  color: var(--orange); /* اختیاری برای تغییر رنگ آیکن */
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}




/* پیام انتظار برای ارسال مجدد */
#resend-cooldown {
    font-size: 14px;
    color: #95a5a6; /* رنگ خاکی */
}
.text-primary{
    color:#003f6b!important;
}



.floating-label {
  position: relative;
  margin-bottom: 1rem;
}
.captcha{
      margin-bottom: 1rem;
}
.floating-label input {
  width: 100%;
  height:45px;
  padding: 10px 12px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  background:  #fff;
}

.floating-label label {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #999;
  background-color: white;
  padding: 0 6px;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s ease;
}
.floating-label input {
  background-color: #fff !important; /* رنگ ثابت سفید */
}
.form-control:focus{
     background-color: #fff !important; /* موقع فوکوس هم سفید بمونه */
}
.floating-label input:focus {
  background-color: #fff !important; /* موقع فوکوس هم سفید بمونه */
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    background-color: var(--white);
  top: 0px;
  font-size: 13px;
  color: var(--blue);
}
/* برای تمام مرورگرها */
.floating-label input:-webkit-autofill,
.floating-label input:-webkit-autofill:hover, 
.floating-label input:-webkit-autofill:focus,
.floating-label input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #333 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* برای فایرفاکس */
.floating-label input:-moz-autofill,
.floating-label input:-moz-autofill:hover,
.floating-label input:-moz-autofill:focus {
  box-shadow: 0 0 0 1000px white inset !important;
  -moz-text-fill-color: #333 !important;
}
.custom-alert {
  background-color: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 12px;
  color: #a94442;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease-in-out;
}

.custom-alert i {
  color: #e74c3c;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* استایل جدید برای دکمه ورود با OTP */
.otp-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: transparent;
    color: var(--blue);
    border: 1px solid var(--blue);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.otp-login-btn:hover {
    background-color: rgba(0, 63, 107, 0.05);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.otp-login-btn i {
    transition: transform 0.3s ease;
}

.otp-login-btn:hover i {
    transform: translateX(5px);
}
/* استایل هدر فرم */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 1.5rem;*/
    padding-bottom: 1rem;
    /*border-bottom: 1px solid var(--light-gray);*/
}

.logo-container {
    flex: 1;
    text-align: right;
}



/**//* استایل خط جداکننده */
.divider-with-text {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--gray);
}


.divider-text {
  display: inline-block;
  padding: 0 10px;
  background-color: white;
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--gray);
}

/* استایل لینک‌ها */
.text-gray {
  color: var(--gray);
}

.z-index-1 {
  z-index: 1;
}
.text-muted{
    font-size:0.9rem;
}
/* انیمیشن برای لینک‌ها */
a.text-primary {
    font-size:0.9rem;
  transition: all 0.3s ease;
}

a.text-primary:hover {
  color: var(--orange) !important;
}

a.text-gray {
  transition: all 0.3s ease;
}

a.text-gray:hover {
  color: var(--dark) !important;
}