html{
    --header-height:83px
}

html, body{
    height: 100%;
}

.show-sca .login-wrap{
    display: none;
}

.show-sca .sca{
    display: flex;
}

header{
    padding:0 32px;
}

    header h1{
        margin:0;
        padding:0
    }

        header img{
            width:292px
        }

main{
    height: calc(100% - var(--header-height));
}

.login-wrap{
    align-items:center;
    display:flex;
    gap:32px;
    height: 100vh;
    justify-content: center;
    margin-top:calc(-1 * var(--header-height))
}

    .login-wrap > aside{
        max-width:640px;
        text-align: center;
        width: 100%;
    }

    .login-wrap form{
        max-width:640px;
        width:100%;
    }

        .login-wrap form .btn-back{
            margin-bottom: 32px;
        }

        .login-wrap form .step{
            display:none;
            max-width: 416px;
            padding-right: 16px;
            width: 100%;
        }

        .login-wrap form[data-current-step="1"] .step[data-step="1"],
        .login-wrap form[data-current-step="2"] .step[data-step="2"],
        .login-wrap form[data-current-step="3"] .step[data-step="3"],
        .login-wrap form[data-current-step="4"] .step[data-step="4"],
        .login-wrap form[data-current-step="5"] .step[data-step="5"]{
            display:block;
        }

        .login-wrap form legend{
            margin-bottom:32px;
        }

        .login-wrap form fieldset > ul{
            list-style:none;
            margin:0;
            padding:0;
        }

            .login-wrap form fieldset > ul > li:not(:last-child){
                margin-bottom:32px
            }

            .login-wrap form fieldset > ul > li > button{
                max-width: 416px;
                width:100%
            }

            .login-wrap form h6{
                text-align:center
            }

            li a{
                display: block;
                margin-top:16px;
            }

@media only screen and (max-width: 768px) {

    html{
        --header-height:64px;
        height:100%;
    }

    header{
        padding:0 16px
    }

    header img{
        width:225px
    }

    .login-wrap {
        align-items:start;
        height: 100%;
        justify-content:center;
        margin-top:0;
    }

        .login-wrap > aside{
            display:none
        }

        .login-wrap form{
            height:calc(100% - var(--header-height));
            margin-top:0;
            max-width:100%;
            padding:0 16px;
        }

        .login-wrap form .step{
            height: 100%;
            max-width:none;
            padding:64px 0 0 0;
        }

        .login-wrap form[data-current-step="4"]{
            height:calc(100vh - var(--header-height) - 64px);
            padding-top:0;
        }

        .login-wrap form fieldset > ul > li > button{
            max-width: 100%;
        }

        .step[data-step="4"] {
            padding-top:0;
        }

        .message-final{
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            height: 100%;
        }

            .message-final .icon{
                margin-top:-68px;
            }

            .message-final h3{
                margin-bottom:0;
            }

            .message-final a{
                bottom: 16px;
                position: absolute;
                width: 100%;
            }

    .show-sca .sca{
        display: block;
    }
}