* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    background-image: url("../images/bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

body::before {
    content: "";
    top: 0;
    display: block;
    position: absolute;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background-size: cover;
    background-image: url("../images/mg.png");
    z-index: -999;
    animation: vibrate-1 7s linear infinite both;
}
body::after {
    content: "";
    bottom: 50px;
    display: block;
    position: fixed;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background-size: cover;
    background-image: url("../images/fg.png");
    z-index: -998;
    animation: vibrate-1 10s linear infinite both;
}

/* ----------------------------------------------
 * Generated by Animista on 2024-7-1 12:37:2
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation vibrate-1
 * ----------------------------------------
 */
@keyframes vibrate-1 {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.overlay {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 999;
    cursor: pointer;
    -webkit-perspective: 1000;
}

.overlay.active {
    display: flex;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: default;
}

.modal__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: transparent;
    cursor: pointer;
    border: none;
}

.overlay.active .modal {
    animation: slide-in-bck-top 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2024-7-1 12:30:56
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-in-bck-top
 * ----------------------------------------
 */
@keyframes slide-in-bck-top {
    0% {
        transform: translateZ(700px) translateY(-300px) translateX(-50%);
        opacity: 0;
    }
    100% {
        transform: translateZ(0) translateY(-50%) translateX(-50%);
        opacity: 1;
    }
}

.authorization {
    display: flex;
    flex-direction: column;
    padding: 56px;
    gap: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);

    color: rgba(0, 0, 0, 0.4);
    font-family: Roboto;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
}

.authorization__label {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.authorization__input {
    padding: 0 30px;

    border: none;
    border-bottom: 1px solid #000;

    font-family: Roboto;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

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

    border: none;

    padding: 12px;

    color: #ffffff;
    font-family: Roboto;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;

    cursor: pointer;
    background-color: transparent;
}

.authorization__button_show {
    position: absolute;
    bottom: 0;
    right: 0;

    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../../images/eye.png");
}

.authorization__button_submit {
    border-radius: 10px;

    width: 100%;

    background-color: #183b3d;
}

.root {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.header {
    display: flex;
    justify-content: flex-start;
    gap: 50px;
    align-items: center;
    /* height: 164px; */
    padding: 20px 40px;

    color: #fff;
    font-family: "Inter";
    font-weight: 800;
    font-size: 14px;

    width: 100%;
    background-color: rgba(30, 70, 85, 0.5);
}

@media (max-width: 1440px) {
    .header {
        padding: 20px 40px;

        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header {
        justify-content: center;
    }
}

.logo {
    width: 60px;
}

.navigation {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.navigation__filler {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px;
    width: 100%;
    align-self: stretch;
    background-color: rgba(30, 70, 85, 0.25);
}

/* Menu block */
.menu {
    display: flex;
    align-items: stretch;
    list-style: none;

    font-family: "Inter";
    font-weight: 900;
    font-size: 16px;
}

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

.menu__link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: #fff;
    padding: 24px;
    z-index: 0;

    background-color: rgba(30, 70, 85, 0.25);
}

.menu__link.active,
.menu__link:hover {
    color: #000;
    font-weight: 900;
    background-color: transparent;
    background-blend-mode: overlay;
}

@media (max-width: 1440px) {
    .menu {
        font-size: 12px;
        align-items: stretch;
    }

    .menu__link {
        padding: 20px;
        height: 100%;
    }

    .navigation__filler {
        padding: 20px 34px;
    }
}

@media (max-width: 768px) {
    .menu {
        width: 100%;
        font-size: 14px;
        flex-wrap: wrap;
        text-align: center;
    }

    .menu__item {
        width: 100%;
    }

    .menu__link {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navigation__filler {
        display: none;
    }
}

@media (max-width: 425px) {
    .navigation {
        flex-direction: column;
        align-items: stretch;
    }
    .menu {
        flex-direction: column;
    }
    .menu__item {
        width: 100%;
    }
    .menu__link {
        width: 100%;
    }
}
/* End of menu block*/

.btn_auth {
    padding: 15px 35px;

    background-color: #0391a5;

    font-family: "Inter";
    font-size: 14px;
    color: #fff;
    border-radius: 5px;
    border: none;

    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 1px #16616b;
    transform: translateY(-3px);

    cursor: pointer;
}

.btn_auth:hover {
    background-color: #16616b;

    box-shadow: 0 0 2px #000;
    transform: translateY(0px);
}

@media (max-width: 1440px) {
    .btn_auth {
        padding: 16px 36px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .btn_auth {
        position: fixed;
        top: 50%;
        transform: translate(90%, -50%);
        right: 0;
        transition: all 1s ease-in-out;
    }

    .btn_auth:hover {
        transform: translate(0%, -50%);
    }

    .btn_auth::before {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        transform: translate(-39px, -50%);
        left: 0;
        width: 0;
        height: 0;
        border-right: 20px solid #0391a5;
        border-left: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-top: 20px solid transparent;
    }
}

/* End of branches block */

.footer {
    position: fixed;
    bottom: 0;
    padding: 15px;
    width: 100%;
    background-color: #000;
    color: #ffffff;
    font-family: Roboto;
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 1440px) {
    .footer {
        font-size: 10px;
        padding: 15px;
    }
}
