:root {
    --modal_hydro: #06a8d1;
    --modal_hydro_dark: #078fb2;
    --modal_text: #333;
    --modal_line: #e5e5e5
}

* {
    box-sizing: border-box
}

.modal_overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .45)
}

.modal_overlay.modal_is_open {
    display: flex
}

.modal_card {
    position: relative;
    width: min(92vw, 430px);
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
    padding: 32px 36px 29px
}

.modal_brand {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0 auto 17px;
    object-fit: contain
}

.modal_title {
    margin: 0 0 25px;
    text-align: center;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--modal_text)
}

.modal_field {
    margin-bottom: 17px
}

.modal_label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: #444
}

.modal_input {
    width: 100%;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: 0;
    padding: 8px 10px;
    font: 14px Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff
}

.modal_input:focus {
    border-color: var(--modal_hydro);
    box-shadow: 0 0 0 2px rgba(6, 168, 209, .12)
}


.modal_password_wrapper {
    position: relative;
    width: 100%;
}

.modal_password_wrapper .modal_input {
    padding-right: 42px;
}

.modal_password_toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_password_toggle:hover {
    color: #555;
}

.modal_password_toggle:focus {
    outline: 0;
    color: var(--modal_hydro);
}

.modal_password_toggle i {
    font-size: 19px;
    line-height: 1;
}



.modal_login {
    width: 100%;
    height: 39px;
    border: 1px solid var(--modal_hydro);
    border-radius: 3px;
    background: var(--modal_hydro);
    color: #fff;
    font-size: 14px;
    cursor: pointer
}

.modal_login:hover {
    background: var(--modal_hydro_dark)
}

.modal_restore {
    display: block;
    margin-top: 17px;
    text-align: center;
    color: var(--modal_hydro_dark);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer
}

.modal_restore:hover {
    text-decoration: underline
}

.modal_close {
    position: absolute;
    top: 9px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 23px;
    line-height: 28px;
    cursor: pointer;
    padding: 0
}

.modal_close:hover {
    color: #555
}

.modal_recovery_actions {
    display: flex;
    gap: 9px;
    justify-content: flex-end;
    margin-top: 16px
}

.modal_secondary,
.modal_primary {
    min-width: 86px;
    height: 36px;
    border-radius: 3px;
    padding: 0 15px;
    font-size: 13px;
    cursor: pointer
}

.modal_secondary {
    border: 1px solid #ccc;
    background: #fff;
    color: #555
}

.modal_primary {
    border: 1px solid var(--modal_hydro);
    background: var(--modal_hydro);
    color: #fff
}

@media(max-width:480px) {
    .modal_card {
        padding: 28px 22px 24px
    }

    .modal_brand {
        width: 82px;
        height: 82px
    }

    .modal_title {
        font-size: 19px
    }
}

.modal_error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.modal_recovery_card {
    width: min(92vw, 430px);
}

.modal_recovery_text {
    margin: -10px 0 22px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.modal_recovery_actions {
    display: flex;
    gap: 9px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal_secondary,
.modal_primary {
    min-width: 86px;
    height: 36px;
    border-radius: 3px;
    padding: 0 15px;
    font-size: 13px;
    cursor: pointer;
}

.modal_secondary {
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
}

.modal_secondary:hover {
    background: #f5f5f5;
}

.modal_primary {
    border: 1px solid var(--modal_hydro);
    background: var(--modal_hydro);
    color: #fff;
}

.modal_primary:hover {
    background: var(--modal_hydro_dark);
}