input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.login-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top:0;
    right:0;
    backdrop-filter: blur(1.5px);
    background-color: #00000073;
    z-index:15;
}
.change-phone-number-btn{
    display:none;
}
.login-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 580px;
    max-height: 385px;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 16px;
}
.login-close-btn {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d9d9d9;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
.login-close-btn svg {
    width: 19px;
    height: 19px;
}

/* همه دکمه های لاگین */

.login-btns {
    max-width: 295px;
    width: 100%;
    height: 53px;
    background-color: #A90E06;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-color: transparent;
}
.login-btns:hover {
    background-color: #fff;
    border: 1px solid #A90E06;
    color: #A90E06;
}

/* بخش نیاز به لاگین */

.need-login {
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
}
.need-login-title {
    font-size: 20px;
    font-weight: 600;
    color: #2f2f2f;
}

/* بخش ورود یا ثبت نام */

.login-enter-phone {
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.login-title {
    color: #2f2f2f;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 13px;
}
.mobile-login-title {
    display: none;
    color: #4c4c4c;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
}
.login-description {
    font-size: 14px;
    font-weight: 400;
    color: #4c4c4c;
    margin-bottom: 18px;
}
.login-phone-input-container {
    position: relative;
    max-width: 296px;
    width: 100%;
    height: fit-content;
    margin-bottom: 42px;
}
.login-phone-input {
    width: 100%;
    color: #4c4c4c;
    border-radius: 12px;
    border: 1px solid #909090;
    outline: 0.5px solid #909090;
    padding-right: 40px;
    padding-block: 10px;
    font-size: 16px;
    font-weight: 400;
}
.login-phone-input:focus {
    outline: 1px solid #5a5a5a;
}
.login-phone-input::placeholder {
    color: #909090;
    font-size: 16px;
    font-weight: 400;
}
.login-phone-input-container svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
/* تایید کد ارسال شده */
.login-verify {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.login-verify-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.login-verify-number {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #909090;
    text-align: center;
    font-size: 18px;
}
.login-verify-number:focus {
    outline: 1.5px solid #5a5a5a;
}
.login-verify-code-container {
    margin-bottom: 42px;
    font-size: 12px;
    color: #646464;
    font-weight: 600;
    align-self: flex-start;
}
.resend-code-btn {
    display: none;
    background-color: transparent;
    border: none;
    color: #2f2f2f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.change-phone-number-btn {
    font-size: 16px;
    font-weight: 600;
    color: #2f2f2f;
    background-color: transparent;
    border: none;
    margin-top: 18px;
    cursor: pointer;
}
@media screen and (max-width: 628px) {
    .login-container {
        margin-inline: 24px;
        height: fit-content;
        max-height: 329px;
    }
    .login-btns {
        max-width: 230px;
    }
    .login-btns:hover {
        background-color: #A90E06;
        border: 1px solid transparent;
        color: #fff;
    }
    .need-login {
        margin-block: 64px 32px;
    }
    .login-enter-phone {
        margin-block: 64px 32px;
    }
    .mobile-login-title {
        display: block;
    }
    .login-title,
    .login-description {
        display: none;
    }
    .login-phone-input-container {
        margin-bottom: 30px;
        max-width: 267px;
    }
    .login-phone-input-container svg {
        display: none;
    }
    .login-phone-input {
        padding-right: 12px;
    }
    .login-phone-input::placeholder {
        font-size: 14px;
        color: #646464;
    }
    .login-close-btn {
        top: 12px;
        left: 12px;
    }
    .login-verify {
        margin-block: 64px 27px;
    }
    .login-verify-number {
        width: 42px;
        height: 42px;
    }
    .login-verify-input-container {
        margin-bottom: 24px;
    }
    .login-verify-code-container {
        align-self: center;
        color: #2f2f2f;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 37px;
    }
    .login-timer-container {
        color: #2f2f2f;
    }
    .change-phone-number-btn {
        font-size: 14px;
    }
}
