@font-face
{
    font-family: ir1;
    font-weight: normal;
    font-style: normal;
    src: url("../fonts/IRANSansWeb_Light.ttf");
    src: url("../fonts/IRANSansWeb_Light.ttf?#iefix") format("embedded-opentype"),
        url("../fonts/IRANSansWeb_Light.woff") format("woff"),
        url("../fonts/IRANSansWeb_Light.ttf") format("truetype")
}

@font-face
{
    font-family: ir2;
    font-weight: normal;
    font-style: normal;
    src: url("../fonts/IRANSansWeb_Medium.ttf");
    src: url("../fonts/IRANSansWeb_Medium.ttf?#iefix") format("embedded-opentype"),
        url("../fonts/IRANSansWeb_Medium.woff") format("woff"),
        url("../fonts/IRANSansWeb_Medium.ttf") format("truetype")
}

body {

}
p,lable,h1,h2,h3,h4,h5,h6,div,button,input,select,b,a {
font-family : "ir1" !important;
}

#extr-page #main {
background : transparent;
}
html {
background : none !important;
}

.btn-login {
    width: 282px !important;
    background-color: #F0C514 !important;
    border: #F3D042 1px solid !important;
    color: #142127 !important;
    font-size: 13px !important;
    font-weight: bold !important;
    height: 50px !important;
    line-height: 30px !important;
    cursor: pointer !important;
    margin-top: 5px !important;

    font-family: ir1 !important;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    height: 34px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 20px 0 rgba(255, 237, 0, .39);
    line-height: 22px;
    border-radius: 21px;
    padding: 0 24px;
    background-color: #ffe53b !important;


    margin-left: unset;
}
.btn-login:hover {
    border-color: #C09D10 !important;
}

.btn-login:focus {
    border-color: #FBE37F !important;
}
.btn-login:active {
    border-color: #90760C !important;
}
footer {
    margin: 0 auto !important;
    text-align: center !important;
    padding: 0px !important;
}
a.forget-login {
    display: block !important;
    text-align: left !important;
    color: #ad8b00 !important;
    font-size: 13px !important;
    position: relative !important;
    left: 10px !important;
}
.message-login {

    background: #2657e1;
    color: #ffffff !important;
    font-size: 12px !important;
    border-right: 7px solid #efc316;

}
.input-login{
text-align: left !important;
}
.smart-form .icon-append, .smart-form .icon-prepend {
color: #000000 !important;
}
.login-box {
    margin: auto;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    max-width: 650px !important; /* افزایش عرض */
    width: 90% !important;
}
.authBox {
    border-radius: 10px !important;
    background: #ffffff;
    padding: 35px !important; /* افزایش padding */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    min-height: 500px; /* تنظیم حداقل ارتفاع */
}
.authBox
{
    border-radius: 10px !important;
    background: #ffffff;
    padding: 10px;
}
.login-footer
{
    background: #ffffff !important;
}
/* استایل برای input ها */
.input-login {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
    text-align: center !important; /* اضافه کردن این خط برای وسط چین کردن متن */
}

/* استایل برای container input */
.input {
    position: relative;
    display: flex;
    justify-content: center; /* اضافه کردن این خط برای وسط چین کردن input */
    width: 100%;
}

/* تنظیم مجدد موقعیت آیکون‌ها */
.icon-append {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666 !important;
    transition: all 0.3s ease;
}

.icon-prepend {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666 !important;
    transition: all 0.3s ease;
}

/* سایر استایل‌ها بدون تغییر */
.input-login:hover {
    border-color: #2353db;
    box-shadow: 0 2px 8px rgba(35, 83, 219, 0.2);
}

.input-login:focus {
    border-color: #2353db;
    box-shadow: 0 2px 12px rgba(35, 83, 219, 0.25);
}

.label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-align: center; /* اضافه کردن این خط برای وسط چین کردن label */
}



/* بهبود message-login */
.message-login {
    border-radius: 8px !important;
    border-right: 4px solid #F0C514 !important;
    background: linear-gradient(45deg, #2657e1, #1e4cd0) !important;
    padding: 8px !important;

}

/* وسط چین کردن tooltip */
.tooltip {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    text-align: center;
    width: 100%;
    left: 0;
}
.login-logo
{
    text-align: center;
    display: block;
    margin-top: -11px;
    font-weight: bold;
    border-bottom: 4px solid #2353db;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fafbff;
    padding: 5px;
    margin-bottom: 25px;
}
/* استایل برای container کلی */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

/* استایل برای input */
.form-floating .input-login {
    width: 100%;
    height: 50px;
    padding: 8px 40px; /* پدینگ بیشتر برای آیکون‌ها */
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
    text-align: center;
}

/* حذف placeholder اصلی */
.form-floating .input-login::placeholder {
    color: transparent;
}

/* استایل برای label */
.form-floating .floating-label {
    position: absolute;
    right: 40px; /* تغییر موقعیت به خاطر آیکون */
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* حالت focus یا filled */
.form-floating .input-login:focus ~ .floating-label,
.form-floating .input-login:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    right: 10px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #2353db;
    background: white;
    padding: 0 5px;
}

/* استایل آیکون‌ها */
.form-floating .icon-prepend {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.form-floating .icon-append {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

/* رفع مشکل رنگ autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: inherit !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* استایل hover و focus */
.form-floating .input-login:hover {
    border-color: #2353db;
    box-shadow: 0 2px 8px rgba(35, 83, 219, 0.2);
}

.form-floating .input-login:focus {
    border-color: #2353db;
    box-shadow: 0 2px 12px rgba(35, 83, 219, 0.25);
}

/* تغییر رنگ آیکون در حالت focus */
.form-floating .input-login:focus ~ .icon-append,
.form-floating .input-login:focus ~ .icon-prepend {
    color: #2353db;
}
/* استایل کلی برای آلرت‌ها */
.alert {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* آلرت خطا */
.alert-danger {
    background-color: #FEF2F2;
    border-right: 4px solid #DC2626;
    color: #991B1B;
}

/* آلرت موفقیت */
.alert-success {
    background-color: #F0FDF4;
    border-right: 4px solid #16A34A;
    color: #166534;
}

/* استایل لیست خطاها */
.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert li {
    padding: 4px 0;
    position: relative;
    padding-right: 20px;
}

.alert li:before {
    content: "•";
    position: absolute;
    right: 0;
    top: 4px;
    color: currentColor;
}

/* دکمه بستن */
.alert .close {
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.7;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
    transition: opacity 0.3s ease;
}

.alert .close:hover {
    opacity: 1;
}

/* انیمیشن ورود و خروج */
.alert {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
button#resendButton {
    background: #2353db;
    color: white;
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px;
    border: none;
}
button#resendButton:hover {
    background: #00258d;
}

.verification-section {
    text-align: center;
    padding: 20px 0;
}

.verification-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
    margin: 20px 0;
}

.verification-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 2px;
    -moz-appearance: textfield;
    transition: all 0.3s ease;
}

.verification-input:focus {
    outline: none;
    border: 2px solid #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

.verification-input::-webkit-outer-spin-button,
.verification-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.timer-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.timer-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    transform-origin: center;
}

.timer-circle circle {
    fill: none;
    stroke-width: 6;
    transition: stroke-dashoffset 0.5s ease;
}

.timer-circle .background {
    stroke: #f0f0f0;
}

.timer-circle .progress {
    stroke: #2ecc71;
    stroke-linecap: round;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.verification-message {
    margin: 15px 0;
    color: #666;
}

.verification-error {
    max-width: 365px;
    margin: 15px auto;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
