* {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body,
.content,
.inner-container,
.auth-modal-title,
.icon-container,
.password-toggle-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input,
textarea,
select,
option,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.u-hidden {
    display: none;
}

html.app-auth-root,
html.app-auth-root body,
body.app-auth-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#root {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 1.25rem;
    background: transparent;
}

.inner-container {
    width: min(28rem, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
}

.auth-modal-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.auth-modal-header {
    text-align: center;
}

.auth-modal-title {
    color: var(--text-main);
}

.auth-modal-body .app-field.is-password-masked {
    -webkit-text-security: disc;
}

.auth-modal-footer {
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .content {
        padding: var(--app-gap-md);
    }

    .inner-container {
        width: min(100%, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
    }

    .auth-modal-footer {
        flex-wrap: wrap;
    }
}
