body.task-login #layout {
    align-items: flex-start;
    box-sizing: border-box;
    justify-content: center;
    min-height: 100vh;
    overflow: auto;
    padding: 0 16px 32px;
}

body.task-login #layout-content {
    align-items: center;
    background: transparent;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    margin-top: clamp(96px, 12vh, 112px);
    max-width: 420px;
    min-height: 0;
    text-align: center;
    width: min(420px, calc(100vw - 32px));
}

body.task-login #logo {
    display: block;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
    height: auto;
    margin: 0 auto 0.75rem;
    max-height: none;
    opacity: 1;
    object-fit: contain;
    position: static;
    top: auto;
    width: min(185px, 56vw);
}

body.task-login #login-form {
    margin: 0 auto;
    max-width: 320px;
    position: static;
    top: auto;
    width: 100%;
}

body.task-login #login-footer {
    margin-top: 1rem;
}

@media screen and (max-width: 480px) {
    body.task-login #layout {
        padding: 0 12px 24px;
    }

    body.task-login #layout-content {
        width: min(100%, calc(100vw - 24px));
    }

    body.task-login #logo {
        margin-bottom: 0.75rem;
        width: min(170px, 58vw);
    }
}

@media screen and (max-height: 620px) {
    body.task-login #layout-content {
        margin-top: 48px;
    }

    body.task-login #logo {
        width: min(150px, 50vw);
    }
}
