#registration-dialog .modal-content,
#login-dialog .modal-content {
    left: 50%;
}

#registration-dialog .modal-dialog {
    top: 5%;
}

#registration-success-dialog .modal-header,
#password-recovery-success-dialog .modal-header {
    margin-bottom: 20px;
}

#registration-success-dialog .modal-body,
#password-recovery-success-dialog .modal-body {
    gap: 20px;
}

.nc-popup-admin-helper {
    height: 80px;
    line-height: 80px;
    vertical-align: middle;
    text-align: center;
    background-color: #04b8f9;
    margin: 1px 0;
}

.auth-wrapper a {
    text-underline-offset: 3px;
}

.auth-wrapper .modal-dialog {
    max-width: 362px;
    top: 14%;
}

.auth-wrapper .modal-title {
    text-transform: inherit;
}

.auth-wrapper .modal-content {
    border-radius: 20px;
    background: var(--tpl-color-background-main);
    padding: 60px 40px 35px 40px;
}

.auth-wrapper .content,
.auth-wrapper .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.auth-wrapper .modal-body .tpl-button {
    padding: 10px 20px !important;
}

.auth-wrapper .form-item .icon {
    cursor: pointer;
    position: absolute;
    height: 100%;
    right: 10px;
    top: 10px;
    text-align: center;
    opacity: 0.6;
    color: #c0c4cc;
    transition: opacity 0.2s;
}

.auth-wrapper .form-item .icon:hover {
    opacity: 1;
}

.auth-wrapper .inputs-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 25px;
}

.auth-wrapper .inputs-wrapper .input {
    position: relative;
}

.auth-wrapper .inputs-wrapper input {
    height: 40px;
    padding: 15px 30px 15px 15px;
    border-radius: 30px;
    width: 100%;
    border: 1px solid #DBDBDB;
    transition: border 0.2s ease-in-out;
}

.auth-wrapper .inputs-wrapper input:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.auth-wrapper .errors .warning,
.auth-wrapper .form-item.warning .label,
.auth-wrapper .form-item .warning-text {
    color: #D04C1E;
    transition: color 0.2s ease-in-out;
}

.auth-wrapper .form-item.warning input {
    background-color: #F8ECE6;
    border: 1px solid rgb(208, 76, 30);
}

.auth-wrapper .form-item .warning-text {
    margin-top: 5px;
}

.auth-wrapper .input {
    display: flex;
    flex-direction: column;
}

.auth-wrapper .inputs-wrapper .label {
    margin-bottom: 4px;
}

.auth-wrapper .captcha-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 1rem 0;
}

.auth-wrapper .captcha-wrapper button {
    border: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    padding: 0.2em;
    position: relative;
    font-size: 20px;
    border: none;
    background-color: inherit !important;
}

.auth-wrapper .captcha-wrapper button:focus {
    outline: none;
}

.auth-wrapper .captcha-wrapper button svg {
    width: 1em;
    height: 1em;
}

.auth-wrapper .buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

.auth-wrapper .links-wrapper {
    display: flex;
    align-self: flex-start;
    gap: 5px 10px;
    flex-wrap: wrap;
}

.auth-wrapper .form-item.agreed {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-wrapper .form-item.agreed a {
    text-decoration: none;
}

.auth-wrapper .form-item.agreed input {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 4px;
}

.auth-wrapper .errors {
    display: none;
}

#signup-form {
    max-width: 290px;
}

.auth-wrapper .modal-overlay {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    max-width: 804px;
    max-height: 400px;
    width: 100%;
    border-radius: 20px;
    background: rgb(44, 47, 71);
    padding: 40px 0 53px 40px;
}

.auth-wrapper .overlay-content {
    color: var(--tpl-color-background-main);
    display: flex;
    flex-direction: column;
    max-width: 250px;
}

.auth-wrapper .overlay-header {
    margin-bottom: 52px;
}

.auth-wrapper .logo img {
    width: 220px;
}

.auth-wrapper .heading {
    margin: 0;
}

.auth-wrapper .overlay-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.auth-wrapper .overlay-footer {
    margin-top: 50px;
}

.auth-wrapper .overlay-body .tpl-button {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--tpl-color-brand) !important;
    color: var(--tpl-color-background-main) !important;
    background-color: transparent !important;
}

.auth-wrapper .overlay-content .description,
.auth-wrapper .overlay-content .support {
    font-size: 12px;
}


@media (max-width: 990px) {
    .auth-wrapper .modal-overlay {
        display: none;
    }

    .auth-wrapper .links-wrapper .hidden {
        display: block !important;
    }

    .auth-wrapper .modal-content {
        left: 0 !important;
    }

    .auth-wrapper .modal-dialog {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-wrapper .links-wrapper,
    .auth-wrapper .buttons-wrapper {
        align-self: center;
    }

}

@media (max-height: 790px) {
    .auth-wrapper .modal-dialog {
        top: 10%;
    }
}

@media (max-height: 690px) {
    .auth-wrapper .modal-dialog {
        top: 0;
    }
}

@media (max-height: 590px) {
    .auth-wrapper .modal-overlay {
        display: none;
    }

    .auth-wrapper .links-wrapper .hidden {
        display: block !important;
    }


    .auth-wrapper .modal-content {
        left: 0 !important;
    }
}
