:root {
    --app-auth-primary: #317da5;
    --app-auth-primary-border: #317da5;
    --app-auth-primary-text: #ffffff;
    --app-auth-primary-hover: #286b8e;
    --app-auth-primary-hover-border: #286b8e;
    --app-auth-primary-hover-text: #ffffff;
    --app-auth-control-font-size: 15px;
    --app-auth-control-height: 48px;
    --app-auth-control-radius: 10px;
    --app-auth-field-spacing: 16px;
}

body.app-auth-page {
    background: #edf4f8;
    color: #223247;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.app-auth-surface {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    position: relative;
}

.app-auth-surface::before,
.app-auth-surface::after {
    border-radius: 50%;
    content: '';
    pointer-events: none;
    position: fixed;
}

.app-auth-surface::before {
    background: rgba(60, 111, 139, .09);
    height: 460px;
    right: -170px;
    top: -220px;
    width: 460px;
}

.app-auth-surface::after {
    background: rgba(23, 48, 70, .055);
    bottom: -230px;
    height: 520px;
    left: -220px;
    width: 520px;
}

.app-auth-group {
    max-width: 820px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.app-auth-shell {
    background: #ffffff;
    border: 1px solid rgba(44, 75, 98, .12);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(28, 55, 76, .15);
    display: flex;
    max-width: 820px;
    min-height: 470px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.app-auth-visual {
    background: linear-gradient(145deg, #ffffff 0%, #fbfcfd 58%, #f5f8fa 100%);
    border-radius: inherit;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: 1px solid rgba(44, 75, 98, .1);
    color: #213747;
    flex: 0 0 36%;
    min-height: 100%;
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.app-auth-visual::after {
    border: 1px solid rgba(43, 94, 119, .085);
    border-radius: 50%;
    content: '';
    position: absolute;
}

.app-auth-visual::after {
    bottom: -57px;
    height: 220px;
    left: -57px;
    width: 220px;
}

.app-auth-brand {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: #173046;
    display: flex;
    font-size: 20px;
    font-weight: 500;
    height: 190px;
    justify-content: center;
    left: 50%;
    line-height: 1.25;
    margin: 0;
    max-height: calc(100% - 120px);
    max-width: calc(100% - 56px);
    min-height: 116px;
    min-width: 0;
    padding: 12px;
    position: absolute;
    text-align: center;
    top: 46%;
    transform: translate(-50%, -50%);
    width: 226px;
    word-break: break-word;
    z-index: 1;
}

.app-auth-brand img {
    border-radius: 10px;
    border-radius: var(--app-auth-control-radius);
    display: block;
    filter: drop-shadow(0 1px 2px rgba(23, 48, 70, .08));
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.app-auth-illustration {
    align-items: center;
    bottom: -24px;
    display: flex;
    height: 154px;
    justify-content: center;
    left: -24px;
    opacity: .1;
    position: absolute;
    right: auto;
    width: 154px;
}

.app-auth-ring,
.app-auth-icon {
    align-items: center;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    position: absolute;
}

.app-auth-ring-outer {
    border: 1px solid rgba(39, 91, 116, .8);
    height: 154px;
    width: 154px;
}

.app-auth-icon {
    background: rgba(49, 125, 165, .16);
    border: 1px solid rgba(39, 91, 116, .8);
    box-shadow: none;
    color: #295f7b;
    font-size: 38px;
    height: 84px;
    width: 84px;
}

.app-auth-panel {
    align-items: center;
    background: #ffffff;
    border-radius: inherit;
    display: flex;
    flex: 1 1 64%;
    justify-content: center;
    min-width: 0;
    padding: 32px 38px;
}

.app-auth-content {
    max-width: 390px;
    width: 100%;
}

.app-auth-header {
    margin-bottom: 18px;
}

.app-auth-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin: 6px -6px 0;
}

.app-auth-footer > .app-auth-primary-action {
    flex: 0 1 auto;
    margin: 6px;
    max-width: calc(100% - 12px);
    min-width: 112px;
    white-space: normal;
    width: auto;
}

.app-auth-footer > .app-auth-primary-action .app-action-label {
    overflow-wrap: anywhere;
}

.app-auth-footer > .app-auth-links > a,
.app-auth-footer > .app-auth-links > button {
    margin: 0 10px 0 0;
    overflow-wrap: anywhere;
}

.app-auth-footer > .app-auth-links > a:last-child,
.app-auth-footer > .app-auth-links > button:last-child {
    margin-right: 0;
}

.app-auth-language {
    flex: 0 1 auto;
    margin-top: 8px;
    max-width: 100%;
    min-width: 0;
    position: relative;
    z-index: 20;
}

.app-auth-preferences {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-right: 10px;
}

.app-auth-preferences .public-language {
    position: static;
}

.app-auth-preferences .app-theme-control {
    padding: 4px 0 4px 10px;
}

.app-auth-preferences .app-theme-dropdown {
    position: relative;
}

.app-auth-preferences .app-theme-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #52677d;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    justify-content: center;
    min-height: 44px;
    padding: 10px;
    width: 44px;
}

.app-auth-preferences .app-theme-toggle:hover,
.app-auth-preferences .app-theme-toggle[aria-expanded="true"] {
    background: rgba(49, 125, 165, .07);
    color: #285c79;
}

.app-auth-preferences .app-theme-menu {
    background: #fff;
    border: 1px solid #dce5ed;
    border-radius: 14px;
    bottom: calc(100% + 8px);
    box-shadow: 0 12px 36px rgba(28, 55, 76, .16);
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    position: absolute;
    right: 0;
    width: 208px;
    z-index: 1000;
}

.app-auth-preferences .app-theme-menu[hidden] {
    display: none;
}

.app-auth-preferences .app-theme-menu-label {
    border-bottom: 1px solid #edf1f5;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 13px 16px;
}

.app-auth-preferences .app-theme-menu-options {
    max-height: 236px;
    max-height: max(44px, calc(50vh - 64px));
    max-height: max(44px, calc(50dvh - 64px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
}

.app-auth-preferences .app-theme-menu-options button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #33475b;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    min-height: 44px;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.app-auth-preferences .app-theme-menu-options button + button {
    margin-top: 1px;
}

.app-auth-preferences .app-theme-menu-icon {
    flex: 0 0 16px;
    margin-right: 12px;
    text-align: center;
}

.app-auth-preferences .app-theme-menu-options button span {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-auth-preferences .app-theme-menu-check {
    flex: 0 0 14px;
    margin-left: 12px;
    visibility: hidden;
}

.app-auth-preferences .app-theme-menu-options button[aria-checked="true"] {
    background: #edf4f8;
    color: #285c79;
    font-weight: 500;
}

.app-auth-preferences .app-theme-menu-options button[aria-checked="true"] .app-theme-menu-check {
    visibility: visible;
}

.app-auth-preferences .app-theme-menu-options button:hover,
.app-auth-preferences .app-theme-menu-options button:focus {
    background: #f2f6f9;
    color: #20364a;
}

.app-auth-preferences .app-theme-toggle:focus,
.app-auth-preferences .app-theme-menu-options button:focus {
    outline: 2px solid #317da5;
    outline-offset: -2px;
}

.app-auth-preferences .app-theme-storage-error {
    position: absolute;
    right: 0;
    top: 100%;
    width: 208px;
    max-width: calc(100vw - 32px);
}

@supports selector(:focus-visible) {
    .app-auth-preferences .app-theme-toggle:focus:not(:focus-visible),
    .app-auth-preferences .app-theme-menu-options button:focus:not(:focus-visible) {
        outline: none;
    }
}

.app-auth-language .public-page-language {
    justify-content: flex-end;
    margin: 0;
}

.app-auth-language .public-language-menu {
    bottom: calc(100% + 8px);
    left: auto;
    margin-top: 0;
    right: 0;
    top: auto;
    transform: none;
}

.app-auth-language .public-language-chevron {
    transform: rotate(180deg);
}

.app-auth-language .public-language-options {
    max-height: 236px;
    max-height: max(44px, min(320px, calc(50vh - 64px)));
    max-height: max(44px, min(320px, calc(50dvh - 64px)));
}

.app-auth-language .public-language[open] .public-language-chevron {
    transform: none;
}

.app-auth-language .public-language-toggle {
    background: transparent;
    border: 0;
    color: #52677d;
    min-height: 44px;
    max-width: 100%;
}

.app-auth-language .public-language-toggle:hover,
.app-auth-language .public-language[open] > .public-language-toggle {
    background: rgba(49, 125, 165, .07);
    color: #285c79;
}

.app-auth-language .public-language-icon {
    display: block;
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.app-auth-language .public-language-current {
    display: block;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.app-auth-language .public-language-code {
    display: none;
}

.app-auth-header h1 {
    color: #1f3044;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0;
}

.app-auth-header p {
    color: #687789;
    font-size: 14px;
    line-height: 1.55;
    margin: 7px 0 0;
}

.app-auth-account-group {
    margin: 0 0 16px;
}

.app-auth-account-label {
    color: #35465a;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.app-auth-account {
    align-items: center;
    background: #f7fafc;
    border: 1px solid #e1e9ee;
    border-radius: 10px;
    border-radius: var(--app-auth-control-radius);
    box-sizing: border-box;
    display: flex;
    height: 48px;
    height: var(--app-auth-control-height);
    margin: 0;
    min-height: 48px;
    min-height: var(--app-auth-control-height);
    padding: 6px 12px;
}

.app-auth-account-avatar {
    background: #ffffff;
    border: 1px solid #dce5eb;
    border-radius: 50%;
    height: 34px;
    margin-right: 12px;
    object-fit: cover;
    width: 34px;
}

.app-auth-account strong {
    color: #2c3d50;
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-auth-notices .alert,
.app-auth-status {
    border: 1px solid transparent;
    border-radius: 10px;
    border-radius: var(--app-auth-control-radius);
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
    padding: 11px 14px;
}

.app-auth-notices .alert-success,
.app-auth-status.is-success {
    background: #edf8f2;
    border-color: #cce8d8;
    color: #276747;
}

.app-auth-notices .alert-danger,
.app-auth-notices .alert-warning,
.app-auth-notices .callout-warning,
.app-auth-status.is-error {
    background: #fff6ed;
    border-color: #f0d4b8;
    color: #8b531d;
}

.app-auth-notices .alert .close {
    display: none;
}

.app-auth-notices .app-auth-session-ended {
    align-items: flex-start;
    display: flex;
}

.app-auth-session-ended .fa {
    flex: 0 0 auto;
    line-height: 1.5;
    margin-right: 9px;
}

.app-auth-form.form-master .form-group {
    margin-bottom: 16px;
    margin-bottom: var(--app-auth-field-spacing);
}

.app-auth-form.form-master .form-group > label,
.app-auth-form.form-master .form-group:not(.placeholder-disabled) > label {
    background: transparent;
    color: #35465a;
    display: block;
    font-size: 14px;
    font-weight: 600;
    left: auto;
    line-height: 1.4;
    margin: 0 0 6px;
    max-width: 100%;
    padding: 0;
    position: static;
    top: auto;
}

.app-auth-field {
    position: relative;
}

.app-auth-field-icon {
    align-items: center;
    color: #8a98a7;
    display: flex;
    font-size: 15px;
    height: 100%;
    justify-content: center;
    left: 0;
    pointer-events: none;
    position: absolute;
    text-align: center;
    top: 0;
    width: 52px;
    z-index: 2;
}

.app-auth-field-icon > .fa,
.app-auth-field-action > .fa {
    align-items: center;
    display: inline-flex;
    flex: 0 0 22px;
    height: 22px;
    justify-content: center;
    line-height: 1;
    width: 22px;
}

.app-auth-field-icon > .fa {
    font-size: 18px;
}

.app-auth-field-action > .fa {
    font-size: 16px;
}

.app-auth-form.form-master .form-control {
    background: #f8fafc;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    border-radius: var(--app-auth-control-radius);
    box-sizing: border-box;
    box-shadow: none;
    color: #223247;
    font-size: 15px;
    font-size: var(--app-auth-control-font-size);
    height: 48px;
    height: var(--app-auth-control-height);
    padding: 11px 52px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.app-auth-form.form-master .form-control:hover {
    border-color: #b8c9d4;
}

.app-auth-form.form-master .form-control:focus {
    background: #ffffff;
    border-color: #317da5;
    border-color: var(--app-auth-primary);
    box-shadow: 0 0 0 3px rgba(60, 141, 188, .14);
}

.app-auth-form .has-error .form-control,
.app-auth-form .has-error .form-control:focus {
    border-color: #c65b53;
}

.app-auth-form .has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(198, 91, 83, .12);
}

.app-auth-form .help-block {
    color: #a94442;
    font-size: 13px;
    line-height: 1.4;
    margin: 7px 0 0;
}

.app-auth-inline-error:empty {
    display: none;
}

.app-auth-field-actions {
    align-items: center;
    display: flex;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.app-auth-field-action + .app-auth-field-action {
    margin-left: 4px;
}

.app-auth-field-action {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #7d8b99;
    display: inline-flex;
    font-size: 15px;
    height: 38px;
    justify-content: center;
    padding: 0;
    transition: background-color .2s ease, color .2s ease;
    width: 38px;
}

.app-auth-field-action:hover,
.app-auth-field-action:focus {
    background: #eaf2f6;
    color: #317da5;
    color: var(--app-auth-primary);
    outline: none;
}

.app-auth-field.has-two-actions .form-control {
    padding-right: 96px;
}

.app-password-strength {
    background: #e3e9ed;
    border-radius: 999px;
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
}

.app-password-strength-bar {
    height: 100%;
    transition: background-color .2s ease, width .2s ease;
    width: 0;
}

.app-password-strength.is-weak .app-password-strength-bar {
    background: #c65b53;
    width: 33%;
}

.app-password-strength.is-medium .app-password-strength-bar {
    background: #d69b35;
    width: 66%;
}

.app-password-strength.is-strong .app-password-strength-bar {
    background: #4c9a6a;
    width: 100%;
}

.app-auth-options {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 2px 0 22px;
}

.app-auth-options > * + * {
    margin-left: 18px;
}

.app-auth-account-options > .app-auth-secondary-action {
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    text-align: left;
}

.app-auth-checkbox {
    align-items: center;
    color: #536477;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.app-auth-checkbox input {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
}

.app-auth-primary-action.btn {
    align-items: center;
    background: #317da5;
    background: var(--app-auth-primary);
    border: 1px solid #317da5;
    border: 1px solid var(--app-auth-primary-border);
    border-radius: 10px;
    border-radius: var(--app-auth-control-radius);
    box-shadow: 0 8px 20px rgba(49, 125, 165, .18);
    color: #ffffff;
    color: var(--app-auth-primary-text);
    box-sizing: border-box;
    display: flex;
    font-size: 15px;
    font-size: var(--app-auth-control-font-size);
    font-weight: 500;
    justify-content: center;
    line-height: 1.4;
    min-height: 48px;
    min-height: var(--app-auth-control-height);
    padding: 10px 18px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.app-auth-primary-action.btn:hover,
.app-auth-primary-action.btn:active,
.app-auth-primary-action.btn.active {
    background: #286b8e;
    background: var(--app-auth-primary-hover);
    border-color: #286b8e;
    border-color: var(--app-auth-primary-hover-border);
    box-shadow: 0 10px 24px rgba(49, 125, 165, .25);
    color: #ffffff;
    color: var(--app-auth-primary-hover-text);
    outline: none;
}

.app-auth-primary-action.btn:focus,
.app-auth-primary-action.btn.focus {
    background: #317da5;
    background: var(--app-auth-primary);
    border-color: #317da5;
    border-color: var(--app-auth-primary-border);
    box-shadow: 0 0 0 3px rgba(49, 125, 165, .22), 0 8px 20px rgba(49, 125, 165, .18);
    color: #ffffff;
    color: var(--app-auth-primary-text);
    outline: none;
}

.app-auth-primary-action.btn:active {
    box-shadow: 0 6px 16px rgba(49, 125, 165, .22);
    transform: translateY(1px);
}

.app-auth-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    justify-content: space-between;
    margin: 9px -9px -5px;
}

.app-auth-links > a,
.app-auth-links > .app-auth-secondary-action {
    margin: 5px 9px;
}

.app-auth-links.is-centered {
    justify-content: center;
}

.app-auth-footer > .app-auth-links {
    flex: 1 1 140px;
    justify-content: flex-start;
    margin: 6px;
    max-width: calc(100% - 12px);
    min-width: 0;
    text-align: left;
}

.app-auth-links a,
.app-auth-secondary-action {
    align-items: center;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    color: #317da5;
    color: var(--app-auth-primary);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
    line-height: 1.4;
    min-height: 48px;
    min-height: var(--app-auth-control-height);
    padding: 10px 18px;
}

.app-auth-links a:visited {
    color: #317da5;
    color: var(--app-auth-primary);
}

.app-auth-links a:hover,
.app-auth-secondary-action:hover {
    color: #286b8e;
    color: var(--app-auth-primary-hover);
    text-decoration: underline;
}

.app-auth-links a:focus,
.app-auth-secondary-action:focus {
    color: #317da5;
    color: var(--app-auth-primary);
    outline: 2px solid rgba(49, 125, 165, .28);
    outline-offset: 2px;
    text-decoration: underline;
}

.app-action-busy {
    cursor: wait !important;
    opacity: .78;
    pointer-events: none;
}

.app-auth-secondary-action.app-action-busy,
.app-auth-links a.app-action-busy {
    text-decoration: none;
}

.app-action-busy .app-action-spinner {
    flex: 0 0 auto;
    margin-left: 8px;
}

.app-action-label {
    min-width: 0;
}

.app-auth-mode-compact {
    background: #ffffff;
}

.app-auth-mode-compact .app-auth-surface {
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
}

.app-auth-mode-compact .app-auth-surface::before,
.app-auth-mode-compact .app-auth-surface::after,
.app-auth-mode-compact .app-auth-visual {
    display: none;
}

.app-auth-mode-compact .app-auth-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    max-width: 440px;
    min-height: 0;
}

.app-auth-mode-compact .app-auth-group {
    max-width: 440px;
}

.app-auth-mode-compact .app-auth-panel {
    align-items: flex-start;
    padding: 20px 0;
}

.app-auth-mode-compact .app-auth-primary-action.btn,
.app-auth-mode-compact .app-auth-primary-action.btn:hover,
.app-auth-mode-compact .app-auth-primary-action.btn:active,
.app-auth-mode-compact .app-auth-primary-action.btn.active {
    box-shadow: none;
}

.app-auth-mode-compact .app-auth-primary-action.btn:focus,
.app-auth-mode-compact .app-auth-primary-action.btn.focus {
    box-shadow: 0 0 0 3px rgba(49, 125, 165, .22);
}

.app-auth-mode-compact .app-auth-web-only {
    display: none !important;
}

.app-auth-mode-compact .app-auth-footer {
    display: block;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}

.app-auth-mode-compact .app-auth-footer > .app-auth-primary-action {
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.app-auth-mode-compact .app-auth-footer > nav.app-auth-links {
    justify-content: center;
    margin: 9px 0 0;
    text-align: center;
}

@media (max-width: 767px) {
    .app-auth-surface {
        align-items: flex-start;
        padding: 20px;
    }

    .app-auth-shell {
        flex-direction: column;
        max-width: 500px;
        min-height: 0;
    }

    .app-auth-visual {
        align-items: center;
        border-radius: inherit;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        display: flex;
        flex: 0 0 auto;
        justify-content: space-between;
        min-height: 118px;
        padding: 18px 22px;
    }

    .app-auth-visual::after {
        bottom: auto;
        height: 144px;
        left: auto;
        right: -36px;
        top: -36px;
        width: 144px;
    }

    .app-auth-brand {
        height: auto;
        justify-content: center;
        left: 22px;
        margin: 0;
        max-height: calc(100% - 28px);
        max-width: none;
        min-height: 64px;
        padding: 0;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
    }

    .app-auth-brand img {
        height: auto;
        max-height: 64px;
        max-width: 260px;
        object-position: center;
        width: auto;
    }

    .app-auth-illustration {
        bottom: auto;
        height: 100px;
        left: auto;
        opacity: .08;
        right: -14px;
        top: -14px;
        width: 100px;
    }

    .app-auth-ring-outer {
        height: 100px;
        width: 100px;
    }

    .app-auth-icon {
        font-size: 22px;
        height: 50px;
        width: 50px;
    }

    .app-auth-panel {
        padding: 28px 24px 30px;
    }

    .app-auth-header {
        text-align: center;
    }

    .app-auth-group {
        max-width: 500px;
    }

    .app-auth-language .public-page-language {
        justify-content: center;
    }

    .app-auth-preferences {
        justify-content: center;
        margin-right: 0;
    }

    .app-auth-language .public-language-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .app-auth-form.form-master .form-control {
        font-size: 16px;
    }

    .app-auth-mode-compact .app-auth-panel {
        padding: 20px 0;
    }
}

@media (max-width: 420px) {
    .app-auth-surface {
        padding: 12px;
    }

    .app-auth-shell {
        border-radius: 16px;
    }

    .app-auth-visual {
        min-height: 106px;
        padding: 16px;
    }

    .app-auth-visual::after {
        bottom: auto;
        height: 128px;
        right: -32px;
        top: -32px;
        width: 128px;
    }

    .app-auth-brand {
        left: 16px;
        max-width: none;
        min-height: 58px;
        padding: 0;
        right: 16px;
        width: auto;
    }

    .app-auth-brand img {
        height: auto;
        max-height: 58px;
        max-width: 240px;
        width: auto;
    }

    .app-auth-illustration {
        bottom: auto;
        height: 88px;
        right: -12px;
        top: -12px;
        width: 88px;
    }

    .app-auth-ring-outer {
        height: 88px;
        width: 88px;
    }

    .app-auth-icon {
        font-size: 18px;
        height: 44px;
        width: 44px;
    }

    .app-auth-panel {
        padding: 26px 20px 28px;
    }

    .app-auth-header h1 {
        font-size: 24px;
    }

    .app-auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-auth-options > * + * {
        margin-left: 0;
        margin-top: 10px;
    }

    .app-auth-mode-compact .app-auth-surface {
        padding: 14px 18px;
    }

    .app-auth-mode-compact .app-auth-shell {
        border-radius: 0;
    }
}

@media (max-width: 360px) {
    .app-auth-footer > .app-auth-primary-action {
        flex: 1 1 100%;
    }

    .app-auth-footer > .app-auth-links {
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-auth-form .form-control,
    .app-auth-field-action,
    .app-auth-primary-action.btn,
    .app-password-strength-bar {
        transition: none;
    }
}
