/* Scoped to the login view so signed-in legacy screens retain their layout. */
#wrapper.cleo-auth-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    background: #e1eaef;
}

#wrapper.cleo-auth-page #header {
    display: none;
}

#wrapper.cleo-auth-page #main-section {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 32px 16px;
    box-sizing: border-box;
}

#wrapper.cleo-auth-page #content {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

.cleo-auth-screen,
.cleo-auth-screen > .loginBox {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.cleo-auth-screen > .loginBox {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 28px;
    text-align: left;
}

.cleo-auth-screen .cleo-login-title {
    position: static;
    width: auto;
    margin: 0 0 24px;
    padding: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    color: #178c9a;
}

.cleo-auth-screen .cleo-login-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #4d626c;
}

.cleo-auth-screen .loginInput {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0 0 18px;
    padding: 12px;
    box-sizing: border-box;
    font: inherit;
    font-size: 16px; /* Avoid input focus zoom in iOS Safari. */
    line-height: 1.4;
    background: #fff;
    color: #363636;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
}

.cleo-auth-screen .loginInput:focus {
    outline: 2px solid #178c9a;
    outline-offset: 2px;
}

.cleo-auth-screen .cleo-password-field {
    position: relative;
    margin-bottom: 18px;
}

.cleo-auth-screen .cleo-password-field .loginInput {
    margin-bottom: 0;
    padding-right: 56px;
}

.cleo-auth-screen .cleo-password-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: calc(100% - 4px);
    min-height: 44px;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: #4d626c;
    cursor: pointer;
    touch-action: manipulation;
}

.cleo-auth-screen .cleo-password-toggle:hover {
    color: #178c9a;
    background: #edf5f7;
}

.cleo-auth-screen .cleo-password-toggle:focus-visible {
    outline: 2px solid #178c9a;
    outline-offset: -2px;
}

.cleo-auth-screen .cleo-password-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cleo-auth-screen .cleo-password-slash {
    display: none;
}

.cleo-auth-screen .cleo-password-toggle[aria-pressed="true"] .cleo-password-slash {
    display: block;
}

.cleo-auth-screen .signIn {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    margin: 6px 0 0;
    padding: 12px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 3px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.cleo-auth-screen .signIn:focus-visible {
    outline: 2px solid #178c9a;
    outline-offset: 3px;
}

.cleo-auth-screen .signIn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.cleo-auth-screen .cleo-login-error {
    width: 100%;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: #ba0039;
}

.cleo-auth-screen .cleo-login-error span {
    line-height: inherit;
}

.cleo-auth-screen .cleo-login-back {
    margin-top: 20px;
    text-align: center;
}

.cleo-auth-screen .registerLink {
    position: static;
    display: inline-block;
    width: auto;
    padding: 10px;
    font-size: 16px;
    line-height: 1.4;
}

#wrapper.cleo-auth-page #footer {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

#wrapper.cleo-auth-page #footerCopyRight {
    max-width: 100%;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 380px) {
    .cleo-auth-screen > .loginBox {
        padding: 24px 20px;
    }
}

@media (max-height: 520px) {
    #wrapper.cleo-auth-page #main-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
