@charset "utf-8";

.authorization-popup {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background: #0e0e0e8f;
}

.authorization-popup[status="close"] {
    display: none;
}

.authorization-popup[status="open"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.authorization-popup-body {
    position: relative;
    background: white;
    width: 364px;
    border-radius: 1px;
    padding: 30px;
    color: #2b2b2b;
}

.authorization-popup-body .input-parent,
.authorization-popup-body .authorization-popup-title,
.authorization-popup-body .g-recaptcha {
    margin-bottom: 20px;
}

.input-parent {
    display: flex;
    border-radius: 1px;
    line-height: 20px;
    position: relative;
    font-size: 14px;
    transition: border .5s;
    background-color: #F2F2F2;
}

.input-parent[code="pass"] {
    background-color: white;
    justify-content: center;
}

.input-parent[code="pass"] .code-input {
    width: 13%;
    background-color: #F2F2F2;
    text-align: center;
    margin: 0 7px;
}

.input-parent.err {
    box-sizing: border-box;
    border: 1px solid red;
}

.input-parent.err:before { color: orangered; }

.input-parent input {
    padding: 8px 10px;
    color: #C1C1C1;
    box-sizing: border-box;
    width: 100%;
    color: black;
}

.authorization-popup-body div[code="close"] {
    position: absolute;
    top: 10px;
    right: 10px;
    background: darkgray;
    width: 40px;
    height: 39px;
    border-radius: 4px;
    color: floralwhite;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    padding: 4px 0px 0px 2px;
    cursor: pointer;
}

.authorization-popup-body input::-webkit-outer-spin-button,
.authorization-popup-body input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.authorization-popup-body div[code="timer"] {
    font-size: 14px;
    display: none;
}

.authorization-popup-body div[code="send"] {
    background: #7a4dad;
    color: white;
    text-align: center;
    border-radius: 1px;
    cursor: pointer;
    font-size: 16px;
}

.authorization-popup-body div.wait[code="send"] {
    background: darkgrey;
    cursor: default;
}

.authorization-popup-body div[code="privacy"] {
    line-height: 1.2;
    font-size: 14px;
    margin-bottom: 0;
}

.authorization-popup-body div[code="privacy"] a { text-decoration: underline; }

.authorization-popup-title {
    text-align: center;
    font-size: 16px;
    margin-right: 10px;
    line-height: 20px;
}

.authorization-popup-title:before {
    content: '';
    background: url("/local/img/auth-title.svg") no-repeat center;
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-right: 10px;
}

@media (max-width: 600px) {
    .authorization-popup {
        top: -220px;
    }
}
