.login-page-body {
    --brown-grey: #898989;
    --max-width: 800px;
    min-height: 100vh;
    background: #fff;
    font-family: var(--font-yekanbakh, "Yekan Bakh", sans-serif);
    direction: rtl;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin: 0;
    padding: 0;
}

.login-page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px 32px;
}

.login-top {
    flex-shrink: 0;
    width: 100%;
}

.login-back {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.login-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: #1f1f1f;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.login-back-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.login-logo {
    display: block;
    max-width: 100%;
    height: 40px;
    width: auto;
    border-radius: 12px;
    margin: 36px auto 68px;
}

.login-form,
.login-actions {
    width: 100%;
}

.login-title {
    color: #000;
    text-align: right;
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    margin: 0 0 24px;
    padding: 0;
}

.login-desc {
    color: #0c0c0c;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0 0 6px;
    padding: 0;
}

.login-phone-input {
    outline: none;
    box-shadow: none;
    display: block;
    width: 100%;
    height: 48px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #ebebeb;
    color: #0c0c0c;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    direction: ltr;
}

.login-phone-input::placeholder {
    color: var(--brown-grey);
    text-align: left;
    direction: ltr;
}

.login-phone-input:focus,
.login-phone-input:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #ebebeb;
}

.login-phone-input.is-error {
    border-color: #e90d0d;
}

.login-error {
    width: auto;
    color: #e90d0d;
    padding: 0;
    text-align: right;
    font-weight: normal;
    font-size: 12px;
    margin: 0;
    display: block;
    line-height: 20px;
}

.login-error[hidden] {
    display: none;
}

.login-submit {
    outline: none;
    box-shadow: none;
    display: block;
    width: 100%;
    font-weight: 600;
    border-radius: 12px;
    font-size: clamp(14px, 3.46vw, 16px);
    line-height: 48px;
    padding: 0;
    border: 1px solid transparent;
    font-family: inherit;
    box-sizing: border-box;
    margin: 0;
    background: #f0f0f0;
    color: #828282;
    cursor: not-allowed;
    transition: background 0.2s, color 0.2s;
}

.login-submit:not(.deactivate):not(:disabled) {
    background: #ef4055;
    color: #fff;
    cursor: pointer;
}

.login-submit.is-loading,
.login-submit.is-loading:disabled {
    background: #ef4055;
    color: #fff;
    cursor: wait;
}

.login-btn-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-btn-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: login-dot-pulse 1s ease-in-out infinite;
}

.login-btn-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.login-btn-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes login-dot-pulse {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.login-step[hidden] {
    display: none;
}

.otp-inputs {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 24px 0 6px;
    box-sizing: border-box;
}

.otp-input {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    color: #0c0c0c;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    outline: none;
    box-shadow: none;
    background: #fff;
    direction: ltr;
    box-sizing: border-box;
}

.otp-input::placeholder {
    color: #c5c7cb;
    font-weight: 400;
}

.otp-input:focus {
    border-color: #ebebeb;
}

.otp-inputs.is-error .otp-input {
    border-color: #e90d0d;
}

.otp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 24px 0;
    direction: rtl;
}

.otp-resend {
    outline: none;
    box-shadow: none;
    text-decoration: none;
    width: auto;
    font-weight: 600;
    height: 40px;
    border-radius: 20px;
    font-size: clamp(14px, 3.46vw, 16px);
    line-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    font-family: inherit;
    box-sizing: border-box;
    margin: 0;
    background: #f0f0f0;
    color: #828282;
    cursor: not-allowed;
}

.otp-resend:not(.deactivate):not(:disabled) {
    color: #0c0c0c;
    cursor: pointer;
}

.otp-timer {
    width: 40px;
    display: inline-block;
    direction: ltr;
    text-align: left;
}

.otp-edit-phone {
    outline: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #008eb2;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .login-page-body > footer.bg-white {
        display: none !important;
    }

    .login-page-container,
    .login-box {
        display: contents;
    }

    .login-actions {
        position: fixed;
        bottom: 24px;
        width: calc(100% - 48px);
        max-width: calc(var(--max-width) - 48px);
        right: 0;
        left: 0;
        margin: auto;
        z-index: 10;
    }
}

@media (min-width: 992px) {
    .login-page {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: none;
        margin: 10rem auto 0;
        min-height: calc(100vh - 777px);
        padding: 100px 0;
    }

    .login-page-container {
        display: flex;
        justify-content: center;
        width: 856px;
        max-width: calc(100% - 48px);
        height: 624px;
    }

    .login-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        min-height: 360px;
        padding: 30px 15px;
        background: #fff;
        border: 1px solid #ebebeb;
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    .login-top {
        display: none;
    }

    .login-step {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 420px;
        max-width: 100%;
    }

    .login-title {
        text-align: center;
        font-size: 22px;
        font-weight: 500;
        line-height: 33px;
        margin: 0;
        color: #28292c;
    }

    .login-desc {
        text-align: center;
        font-size: 16px;
        line-height: 24px;
        margin: 30px 0;
        color: #797979;
    }

    .login-phone-input {
        height: 60px;
        border-radius: 12px;
        font-size: 16px;
        margin-bottom: 0;
        padding: 0 16px;
    }

    .login-error {
        text-align: center;
        margin-top: 8px;
    }

    .login-actions,
    .otp-footer {
        margin-top: 30px;
        margin-bottom: 0;
    }

    .login-submit {
        min-height: 60px;
        line-height: 60px;
        font-size: 16px;
    }

    .otp-inputs {
        margin: 0;
    }
}
