/* Login */
@media (max-width: 768px) {
    #qrContainer {
        display: none !important;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }
}

.hidden {
    display: none !important;
}

.login {
    max-width: 1440px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.login__container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.47);
    width: 100%;
    max-width: 400px;
}


.login__button {
    background-color: black;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login__button:hover {
    background-color: #333;
}

.login__forgot-password {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #4f46e5;
    text-decoration: none;
}

.login__forgot-password:hover {
    text-decoration: underline;
}

.login__ya-button {
    margin-top: 15px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background: rgba(19, 19, 23, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    transition: display 1s ease;
}

.popup--active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup__container {
    background: #131317;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    width: 100%;
    max-width: 400px;
    border: 2px solid rgba(121, 121, 121, 1);
}

.popup__close {
    position: absolute;
    right: 8px;
    top: 8px;
    cursor: pointer;
    opacity: 0.7;
}

.popup__close:hover {
    opacity: 1;
}

.popup__message {
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.popup__message--error {
    display: block;
    background-color: rgba(236, 40, 92, 0.1);
    color: rgba(236, 40, 92, 1);
    text-align: center;
}

.popup__message--success {
    display: block;
    background-color: rgba(40, 236, 128, 0.1);
    color: rgb(40, 236, 128);
    text-align: center;
}

/* Login Form */
.login {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.login__header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login__title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
}

.login__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login__field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login__field-code {
    display: none;
}

.login__field-code--active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login__field-promo {
    display: none;
}

.login__field-promo--active {
    display: flex;
    margin-top: 4px;
}

.login__reserve-email {
    color: #4A4A4A;
    text-align: center;
}

.login__label {
    font-size: 14px;
    color: #ffffff;
}


.login__input {
    width: 100%;
    border: 1px solid #767676;
}

.login__code-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login__checkboxes {
    display: none;
}

.login__checkboxes--active {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.login__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login__link {
    text-decoration: underline;
}

.login__send-code {
    width: 100% !important;
}

/* .login__send-code:hover {
    background: rgba(74, 74, 74, 0.5) !important;
    box-shadow: none !important;
    border: 1px solid #767676 !important;
    border-left: 0px !important;
    outline: none !important;
} */

.login__send-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login__button {
    width: 100% !important;
}


.login__button--primary:hover {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0px 0px 10px 5px rgba(79, 70, 229, 1);
    height: 56px;
}

.login__divider-container {
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.login__divider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login__divider-line {
    flex: 1;
    height: 1px;
    background: #797979;
}

.login__divider-text {
    color: #797979;
    font-size: 16px;
}

.login__buttons-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login__button--yandex {
    width: 100% !important;
}

.login__button-icon {
    width: 20px;
    height: 20px;
}


.login__signup {
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.login__signup-link {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
}

.login__signup-link:hover {
    text-decoration: underline;
}

.login__form-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login__yandex-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.yaPersonalButton_m {
    height: 56px !important;
}

.yaPersonalButtonText {
    color: black;
}

.yaPreloadingSuggestBlock {
    height: 56px !important;
}

.login__qr-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
}

.qr__text-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.qr__text {
    color: #797979;
}

.qr {
    border-radius: 16px;
}


@media(max-width:425px) {
    .popup__container {
        max-width: 340px;
    }

}

@media(max-width:375px) {
    .popup__container {
        max-width: 320px;
    }

    .login__send-code {
        min-width: 90px !important;
    }
}


@media(max-width:320px) {
    .popup__container {
        max-width: 280px;
    }

}