@font-face {
    font-display: swap;
    font-family: iranyekan;
    font-style: normal;
    font-weight: 100;
    src: url(../fonts/iranyekan/iranyekan-100.eot);
    src: url(../fonts/iranyekan/iranyekan-100.eot?#iefix) format("embedded-opentype"), url(../fonts/iranyekan/iranyekan-100.woff) format("woff"), url(../fonts/iranyekan/iranyekan-100.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: iranyekan;
    font-style: normal;
    font-weight: 300;
    src: url(../fonts/iranyekan/iranyekan-300.eot);
    src: url(../fonts/iranyekan/iranyekan-300.eot?#iefix) format("embedded-opentype"), url(../fonts/iranyekan/iranyekan-300.woff) format("woff"), url(../fonts/iranyekan/iranyekan-300.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: iranyekan;
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/iranyekan/iranyekan-400.eot);
    src: url(../fonts/iranyekan/iranyekan-400.eot?#iefix) format("embedded-opentype"), url(../fonts/iranyekan/iranyekan-400.woff) format("woff"), url(../fonts/iranyekan/iranyekan-400.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: iranyekan;
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/iranyekan/iranyekan-500.eot);
    src: url(../fonts/iranyekan/iranyekan-500.eot?#iefix) format("embedded-opentype"), url(../fonts/iranyekan/iranyekan-500.woff) format("woff"), url(../fonts/iranyekan/iranyekan-500.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: iranyekan;
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/iranyekan/iranyekan-700.eot);
    src: url(../fonts/iranyekan/iranyekan-700.eot?#iefix) format("embedded-opentype"), url(../fonts/iranyekan/iranyekan-700.woff) format("woff"), url(../fonts/iranyekan/iranyekan-700.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: iranyekan;
    font-style: normal;
    font-weight: 800;
    src: url(../fonts/iranyekan/iranyekan-800.eot);
    src: url(../fonts/iranyekan/iranyekan-800.eot?#iefix) format("embedded-opentype"), url(../fonts/iranyekan/iranyekan-800.woff) format("woff"), url(../fonts/iranyekan/iranyekan-800.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: iranyekan;
    font-style: normal;
    font-weight: 900;
    src: url(../fonts/iranyekan/iranyekan-900.eot);
    src: url(../fonts/iranyekan/iranyekan-900.eot?#iefix) format("embedded-opentype"), url(../fonts/iranyekan/iranyekan-900.woff) format("woff"), url(../fonts/iranyekan/iranyekan-900.ttf) format("truetype")
}
* {
    font-family: 'iranyekan';
    font-weight: 700;
}
body {
     background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* کادر اصلی */
.container {
    width: 400px;
    background: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* لینک ورود */
.toggle-link {
    text-align: left;
    font-size: 14px;
    color: #e64a19;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    cursor: pointer;

    font-weight: 600
}

/* لوگو به‌صورت عکس */
.logo {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 10px;
}

.logo-img {
    width: 120px; /* تنظیم عرض لوگو */
    height: auto;
}

/* عنوان فرم + آیکون SVG */
.title {
    font-size: 16px; /* کوچکتر کردن متن */
    font-weight: bold;
    text-align: right;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.title .icon {
    margin-left: 10px; /* فاصله بین متن و آیکون */

}

/* توضیحات */
.description {
    font-size: 12px; /* کوچکتر کردن متن */
    color: #666;
    text-align: right;
    margin-bottom: 15px;
    direction: rtl;

}

/* فیلد ورودی */
.input-group {
    text-align: right;
    font-size: 12px; /* کوچکتر کردن متن */
    color: #666;
    margin-bottom: 10px;
    direction: rtl;

}

input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 15px;
    text-align: right;
}

/* پیش‌شماره */
.phone-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 15px;
    overflow: hidden;

}

.phone-container span {
    padding: 10px;
    background: none;
    border-left: none;
    font-size: 14px;
}

.phone-container input {
    border: none;
    flex: 1;
    padding: 10px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
.phone-container input:focus {
    outline: none;
    border: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
.phone-container:focus-within {
    border: 1px solid #000000;
}
/* دکمه ثبت‌نام */
.btn {
    background: #aaa;
    color: white;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 15px;
    cursor: not-allowed;
    margin-top: 45px; /* افزایش فاصله از بالا */
}

.btn-primary{
    background: rgb(230, 74, 25);
    cursor: pointer;
}

/* متن پایین */
.terms {
    font-size: 14px; /* کوچکتر کردن متن */
    color: #666;
    text-align: center;
    margin-top: 50px; /* افزایش فاصله بیشتر از دکمه */
    direction: rtl;

}

.terms a {
    color: #e64a19;
    text-decoration: none;
}
.reSVG{
    margin-left: 10px;
    color: #e64a19;
}
.reSVG path {
    fill: currentColor;
}
#registerPhoneNumber {
    direction: ltr;
    text-align: left;

}
#registerPhoneNumber::placeholder {
    text-align: right;
    direction: rtl;

}
#loginPhoneNumber {
    direction: ltr;
    text-align: left;

}
#loginPhoneNumber::placeholder {
    text-align: right;
    direction: rtl;

}
#loginPassword::placeholder {
    text-align: right;
    direction: rtl;

}
/* استایل فیلد رمز عبور فقط برای ورود */
input[type="password"] {
    width: 95%;
    padding: 10px;
    font-size: 14px;
    border-radius: 15px;
    text-align: right;
    direction: rtl;

}

input[type="password"]:focus {
    outline: none;
}

.password-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc; /* حاشیه پیش‌فرض */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease-in-out; /* انیمیشن نرم برای تغییر رنگ */
}

/* تنظیم یک حالت دائمی برای زمانی که فوکوس می‌شود */
.password-container:focus-within {
    border: 1px solid #000000; /* تغییر رنگ حاشیه بدون تغییر اندازه */
}

.password-container input {
    border: none; /* جلوگیری از تغییر حاشیه */
    flex: 1;
    padding: 10px;
    font-size: 14px;
    text-align: left;
    direction: ltr;

}

.password-container input:focus {
    outline: none; /* حذف حالت پیش‌فرض مرورگر */
}


/* تنظیم اندازه و موقعیت آیکون چشم */
.toggle-password {
    width: 20px; /* کاهش اندازه آیکون */
    height: 20px;
    position: absolute;
    right: 10px; /* قرار گرفتن دقیق در سمت راست */
    cursor: pointer;
    /*display: none; !* آیکون پیش‌فرض مخفی است *!*/
}

.toggle-password svg {
    width: 20px; /* کوچک کردن SVG */
    height: 20px;
}


/* تغییر رنگ هنگام هاور */
.toggle-password:hover svg path {
    stroke: #000000;
}

/* نمایش خط روی آیکون چشم */
.hidden {
    display: none;
}

#eyeSlash {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

/* هنگام نمایش رمز، خط روی چشم نشان داده شود */
.eye-slash {
    opacity: 1 !important;
    visibility: visible !important;
}
.login-links {
    text-align: center; /* وسط‌چین کردن لینک‌ها */
    margin-top: 15px; /* فاصله از دکمه ورود */
}

.login-links a {
    display: block; /* هر لینک در یک خط جداگانه */
    color: #e64a19; /* رنگ آبی */
    font-size: 14px;
    text-decoration: none;

    margin-top: 20px; /* فاصله بین دو لینک */
    transition: color 0.2s ease-in-out;
    font-weight: 600
}

.login-links a:hover {
    color: #e64a19; /* تغییر رنگ هنگام هاور */
}
/* فرم رمز یکبار مصرف */
#otpLoginForm .phone-container {
    margin-bottom: 20px;
}

#otpLoginForm .btn {
    margin-top: 15px;
}

#otpLoginForm .login-links {
    text-align: center;
    margin-top: 15px;
}

#otpLoginForm .login-links a {
    color: #e64a19;
    font-size: 14px;
    text-decoration: none;

    transition: color 0.2s ease-in-out;
}
/* فرم فراموشی رمز عبور */
#forgotPasswordForm {
    text-align: center;
}

#forgotPasswordForm input {
    width: 95%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 15px;
    text-align: left;
    direction: ltr;
}

#forgotPasswordForm input:focus {
    outline: none;
    border: 1px solid #000;
}

#forgotPasswordBtn {
    margin-top: 15px;
}

#forgotPasswordForm .login-links {
    text-align: center;
    margin-top: 15px;
}

#forgotPasswordForm .login-links a {
    color: #e64a19;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
/* فرم تأیید شماره */
#verificationForm .description {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

#verificationCode {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 15px;
    text-align: center;
    direction: ltr;
}

#verificationCode:focus {
    outline: none;
    border: 1px solid #000;
}

#verifyBtn {
    margin-top: 15px;
}

#verificationForm .login-links {
    text-align: center;
    margin-top: 15px;
}

#verificationForm .login-links a {
    color: #e64a19;
    font-size: 14px;
    text-decoration: none;

    transition: color 0.2s ease-in-out;
}
#resendCodeMessage {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

#countdown {
    font-weight: bold;
    color: #e64a19;
}

#changePhoneNumber {
    display: block;
    text-align: center;
    color: #e64a19;
    font-size: 14px;
    margin-top: 15px;
    text-decoration: none;

    transition: color 0.2s ease-in-out;
}

#changePhoneNumber:hover {
    color: #d32f2f;
}
.otp-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.otp-input {
    width: 40px;
    height: 50px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    font-weight: bold;
}

.otp-input:focus {
    border-color: #e64a19;
}


.errors-wrapper{
    width: 100%;
}

.errors-wrapper .text-error{
    text-align: right;
    color: rgb(243, 64, 64);
    margin-top: 5px;
    line-height: 2em;
    display: block;
    direction: rtl;
    font-weight: 400;
}


#enterverificationcode .btn-resend {
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#enterverificationcode .btn-resend:hover {
    background: #45a049;
}

#enterverificationcode .description {
    color: #666;
    margin-top: 10px;
}
