.login-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: .4s linear;
    transition-property: opacity, visibility;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.login-dialog_visible {
    opacity: 1;
    visibility: visible;
}

.login-dialog__container {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 20px 42px rgba(23, 49, 88, 0.24), 0 20px 57px rgba(45, 92, 162, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.login-dialog__header {
    width: 100%;
    padding: 16px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e6e9ee;
}

.login-dialog__header h3 {
    width: calc(100% - 40px);
    font-size: 26px;
    line-height: 32px;
    font-weight: 600;
    color: #2e4054;
}

.login-dialog__close-btn {
    height: 32px;
    width: 32px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(/public/landing/icons/close.svg);
    background-color: transparent;
    border: none;
    opacity: 0.4;
    transition: opacity .3s linear;
    cursor: pointer;
}

.login-dialog__close-btn:hover {
    opacity: 1;
}

.login-dialog__form {
    width: 100%;
    padding: 0 30px 30px 30px;
}

.login-dialog__label {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    margin: 0 auto 12px;
    /* disable events for stopping firing hover on label */
    pointer-events: none;
}

.login-dialog__label span {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 18px;
    line-height: 20px;
    color: #535f6b;
}

.login-dialog__label input,
.login-dialog__label textarea {
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #dbe0e9;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 1px;
    color: #2e4054;
    transition: .3s linear;
    transition-property: border-color, box-shadow;
    /* revert label events disable */
    pointer-events: all;
}

.login-dialog__label textarea {
    max-height: 200px;
    min-height: 200px;
    resize: none;
}

.login-dialog__label input:hover,
.login-dialog__label textarea:hover {
    border-color: #cad1dc;
    box-shadow: 0 4px 6px rgba(37, 42, 52, 0.1);
}

.login-dialog__label input::placeholder,
.login-dialog__label textarea::placeholder {
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 1px;
    color: #535f6b;
    transition: color .2s linear;
    opacity: 0.5;
}

.login-dialog__label input:focus::placeholder,
.login-dialog__label textarea:focus::placeholder {
    color: transparent;
}

.login-dialog__show-password {
    position: absolute;
    width: 24px;
    height: 24px;
    right: 20px;
    bottom: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='16' viewBox='0 0 22 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 0.5C6 0.5 1.73 3.61 0 8C1.73 12.39 6 15.5 11 15.5C16 15.5 20.27 12.39 22 8C20.27 3.61 16 0.5 11 0.5ZM11 13C8.24 13 6 10.76 6 8C6 5.24 8.24 3 11 3C13.76 3 16 5.24 16 8C16 10.76 13.76 13 11 13ZM11 5C9.34 5 8 6.34 8 8C8 9.66 9.34 11 11 11C12.66 11 14 9.66 14 8C14 6.34 12.66 5 11 5Z' fill='%23535F6B'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
    transition: .3s linear;
    transition-property: opacity, visibility;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    /* revert label events disable */
    pointer-events: all;
}

.dialog:not(.dialog_visible) .login-dialog__show-password {
    visibility: hidden !important;
}

.login-dialog__label input[type="text"] + .login-dialog__show-password {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z' fill='%23535F6B'/%3E%3Cpath d='M3.99482 17.434C3.22056 18.3741 3.35506 19.7639 4.29523 20.5382C5.2354 21.3124 6.62521 21.178 7.39947 20.2378L19.8671 5.09857C20.6413 4.1584 20.5068 2.76859 19.5666 1.99433C18.6265 1.22008 17.2367 1.35458 16.4624 2.29474L3.99482 17.434Z' fill='%23A9AFB5'/%3E%3C/svg%3E");
}

.login-dialog__label input:valid + .login-dialog__show-password {
    opacity: 0.5;
    visibility: visible;
}

.login-dialog__label input:valid + .login-dialog__show-password:hover {
    opacity: 0.8;
}

.login-dialog__label input:-webkit-autofill + .login-dialog__show-password {
    opacity: 0.5;
}

.login-dialog__aux-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.login-dialog__remember-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.login-dialog__remember-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border: 1px solid #c6cdda;
    border-radius: 7px;
    outline: none;
    cursor: pointer;
}

.login-dialog__remember-label {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #535f6b;
}

.login-dialog__lost-password {
    color: #2f91ff;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    user-select: none;
}

.login-dialog__lost-password:hover {
    color: #0079ff;
}

.login-dialog__lost-password::after {
    position: relative;
    content: '';
    width: 0;
    left: -3%;
    height: 2px;
    display: block;
    background: #0079ff;
    transition: width .3s ease-in-out;
}

.login-dialog__lost-password:hover::after {
    width: 106%;
}

.login-dialog__button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.login-dialog__button {
    padding: 20px 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease-in-out;
    transition-property: background-color, color, box-shadow;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
}

.login-dialog__button_blue {
    background-color: #2f91ff;
    color: #f8fafd;
    box-shadow: 0 4px 8px rgba(47, 145, 255, 0.4);
}

.login-dialog__button_blue:hover {
    background-color: #0079ff;
    color: #f8fafd;
}

.login-dialog__button_blue:hover:active {
    background-color: #0072f1;
    color: #f8fafd;
}

.login-dialog__button_white {
    background-color: #fff;
    border: 1px solid #d5dce7;
    color: #2e4054;
    box-shadow: 0 4px 5px rgba(157, 162, 190, 0.25);
}

.login-dialog__button_white:hover {
    background-color: #fcfcff;
    color: #2e4054;
}

.login-dialog__button_white:hover:active {
    background-color: #f9f9fd;
    color: #2e4054;
}

.login-dialog__button-container .login-dialog__button:first-child {
    width: 43%;
}

.login-dialog__button-container .login-dialog__button:last-child {
    width: calc(57% - 10px);
}

.login-dialog__error {
    margin-top: 10px;
    padding: 0 30px 25px 30px;
}

.login-dialog__error p {
    margin: 0 auto;
    font-size: 18px;
    line-height: 24px;
    color: #2f91ff;
    text-align: center;
}

.login-dialog__error .login-dialog__button {
    display: flex;
    margin: 25px auto 0;
    padding: 15px 30px;
}

@media (max-width: 767px) {
    .login-dialog__container {
        width: calc(100% - 30px);
    }

    .login-dialog__header {
        margin-bottom: 15px;
        padding: 16px 20px 12px;
    }

    .login-dialog__header h3 {
        font-size: 22px;
        line-height: 26px;
    }

    .login-dialog__close-btn {
        width: 24px;
        height: 24px;
    }

    .login-dialog__form {
        padding: 0 20px 20px 20px;
    }

    .login-dialog__label span,
    .login-dialog__lost-password,
    .login-dialog__remember-label {
        font-size: 16px;
        line-height: 18px;
    }

    .login-dialog__label input {
        padding: 15px 20px;
    }

    .login-dialog__button-container {
        flex-direction: column;
    }

    .login-dialog__button-container .login-dialog__button {
        width: 100% !important;
        padding: 16px 0;
        font-size: 18px;
        line-height: 18px;
    }

    .login-dialog__button-container .login-dialog__button:first-child {
        margin-bottom: 10px;
    }
}