.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {
    background: #111;
    color: #fff;
    padding: 25px;
    width: 320px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    font-size: 22px;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.code-inputs {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.code-inputs input {
    width: 45px;
    height: 45px;
    font-size: 20px;
    text-align: center;
}

button.link {
    background: none;
    border: none;
    color: #aaa;
}


.auth-button {
    display: inline-block;
    padding: 12px 18px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
}

.auth-button:hover {
    background: #333;
}

/* важно */
#auth-modal.hidden {
    display: none !important;
}
