.login-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    overflow: hidden;
}

.logo-wrapper {
    flex-basis: 33%;
    flex-shrink: 1;
    min-height: 120px;
}

.login-content__logo {
    width: 100%;
    height: 100%;
    padding: 0 8px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.login-content__logo > img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 120px;
}

.model-dialog-wrapper {
    flex-basis: 67%;
    flex-grow: 1;
    flex-shrink: 0;
    max-height: calc(100% - 120px);
}


.modal-dialog {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgb(var(--rgbcolor-surface));
    /*border: 1px solid rgba(var(--rgbcolor-surface-contrast), .4);*/
    border-radius: 10px;
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog__header {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
}

.modal-dialog__content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-dialog__footer {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    text-align: center;
}

.modal-dialog__footer__copyright {
    margin-top: 8px;
}


#qrcode {
    width: 100%; 
    height: auto; 
    border: 1px solid black;
}

@media (max-width: 500px) {
    .login-content {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .logo-wrapper {
        height: 130px;
        flex: unset;
    }

    .modal-dialog {
        border-radius: 0;
        height: 100%;
        padding: 12px;
    }
    
    .modal-dialog__content {
        padding: 0 8px 0 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: safe center;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .model-dialog-wrapper {
        padding-bottom: 0;
    }
}

/* ################################################################## */

.messagebox {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 5px;
    background: rgb(var(--rgbcolor-surface));
}

.messagebox__content {
    position: relative;
    display: flex;
    font-size: 16px;
}

.messagebox__content--warn:before {
    background-image: '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/></g><g><g><g><path d="M12,5.99L19.53,19H4.47L12,5.99 M12,2L1,21h22L12,2L12,2z"/><polygon points="13,16 11,16 11,18 13,18"/><polygon points="13,10 11,10 11,15 13,15"/></g></g></g></svg>';
    margin-right: 8px;
}

.messagebox--hidden {
    display: none;
}

.messagebox--floating {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999999 !important;
}

.messagebox--warn {
    border: 1px solid rgba(var(--rgbcolor-warn), .4);
    background: rgba(var(--rgbcolor-warn), .1);
    color: var(--color-warn);
}

.messagebox--error {
    border: 1px solid rgba(var(--rgbcolor-error), .4);
    background: rgba(var(--rgbcolor-error), .1);
    color: var(--color-error);
}

.messagebox--primary {
    border: 1px solid rgba(var(--rgbcolor-primary), .4);
    background: rgba(var(--rgbcolor-primary), .1);
    color: var(--color-primary);
}

.messagebox--secondary {
    border: 1px solid rgba(var(--rgbcolor-secondary), .4);
    background: rgba(var(--rgbcolor-decondary), .1);
    color: var(--color-secondary);
}

/* ################################################################## */

/* width */
::-webkit-scrollbar {
    width: 10px;
    scrollbar-gutter: stable left;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: none;
    border-right: 4px white solid;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #999;
    border-left: 4px white solid;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #888; 
  }

  /* ################################################################## */