:root{
    --surface:#ffffff;
    --text:#171717;
    --muted:#717171;
    --line:#dddddd;
    --line-soft:#ededed;

    --blue:#2563eb;
    --blue-dark:#1d4ed8;
    --red:#2563eb;
    --red-dark:#1d4ed8;

    --danger:#b42318;
}

*{
    box-sizing:border-box;
}

html,
body{
    min-height:100%;
}

body{
    margin:0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:#f7f7f7;

    color:var(--text);

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;
}

button,
input{
    font:inherit;
}


.auth-screen{
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:32px 20px;
}


.auth-box{
    width:min(
        100%,
        440px
    );

    padding:
        36px
        36px
        30px;

    background:#fff;

    border:
        1px solid
        var(--line-soft);

    border-radius:24px;

    box-shadow:
        0 16px 45px
        rgba(0,0,0,.055);
}


.auth-brand{
    display:block;

    width:max-content;

    margin:
        0 auto
        20px;

    text-decoration:none;
}


.auth-brand img{
    display:block;

    height:36px;

    width:auto;

    object-fit:contain;
}


.auth-heading,
.wizard-heading{
    text-align:center;
}


.auth-heading{
    margin-bottom:28px;
}


.auth-heading h1,
.wizard-heading h1{
    margin:0;

    font-size:29px;

    line-height:1.12;

    font-weight:700;

    letter-spacing:-.04em;
}


.auth-heading p,
.wizard-heading p{
    margin:
        9px 0 0;

    color:var(--muted);

    font-size:14px;

    line-height:1.55;
}


.auth-error{
    margin:
        0 0
        20px;

    padding:
        12px 14px;

    border:
        1px solid
        #ffd4d8;

    border-radius:13px;

    background:#fff6f6;

    color:var(--danger);

    font-size:13px;

    line-height:1.45;
}


.auth-field{
    display:grid;

    gap:8px;

    margin-bottom:18px;
}


.auth-field-head{
    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:12px;
}


.auth-field label{
    font-size:13px;

    color:#3d3d3d;

    font-weight:600;
}


.auth-inline-link{
    color:var(--muted);

    font-size:13px;

    font-weight:500;

    text-decoration:none;
}


.auth-inline-link:hover{
    color:var(--text);
}


.auth-field input,
.wizard-input-line input,
.wizard-password input{
    width:100%;

    height:54px;

    padding:
        0 16px;

    border:
        1px solid
        var(--line);

    border-radius:14px;

    background:#fff;

    color:var(--text);

    outline:none;

    font-size:16px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.auth-field input:focus,
.wizard-input-line input:focus,
.wizard-password input:focus{
    border-color:#929292;

    box-shadow:
        0 0 0 3px
        rgba(0,0,0,.045);
}


.auth-primary{
    width:100%;

    min-height:55px;

    border:0;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color:#fff;

    cursor:pointer;

    font-weight:700;

    box-shadow:
        0 10px 24px
        rgba(37,99,235,.22);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.auth-primary:hover{
    transform:
        translateY(-1px);

    box-shadow:
        0 13px 28px
        rgba(37,99,235,.26);
}


.auth-footer,
.wizard-footer{
    margin-top:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:5px;

    color:var(--muted);

    font-size:14px;
}


.auth-footer a,
.wizard-footer a{
    color:var(--text);

    font-weight:650;

    text-decoration:none;
}


.auth-secondary-link{
    display:block;

    width:max-content;

    margin:
        18px auto 0;

    color:#595959;

    font-size:13px;

    text-decoration:none;
}


/* WIZARD */

.auth-box-wizard{
    min-height:410px;
}


.wizard-progress{
    width:100%;

    height:2px;

    margin:
        0 0
        38px;

    overflow:hidden;

    border-radius:999px;

    background:#eeeeee;
}


.wizard-progress-bar{
    display:block;

    width:25%;

    height:100%;

    background:var(--red);

    transition:
        width .2s ease;
}


.wizard-step[hidden]{
    display:none !important;
}


.wizard-heading{
    margin-bottom:28px;
}


.wizard-input-line{
    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        54px;

    gap:9px;
}


.wizard-arrow{
    width:54px;
    height:54px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:0;

    border-radius:15px;

    background:var(--red);

    color:#fff;

    cursor:pointer;

    box-shadow:
        0 8px 20px
        rgba(215,25,50,.15);
}


.wizard-arrow svg{
    width:20px;
    height:20px;

    fill:none;

    stroke:currentColor;

    stroke-width:2;

    stroke-linecap:round;

    stroke-linejoin:round;
}


.wizard-error{
    min-height:20px;

    margin:
        8px 2px 0;

    color:var(--danger);

    font-size:12px;
}


.wizard-back{
    display:block;

    margin:
        0 0
        22px;

    padding:0;

    border:0;

    background:transparent;

    color:var(--muted);

    cursor:pointer;

    font-size:13px;
}


.wizard-password{
    width:100%;
}


.wizard-submit{
    margin-top:11px;
}


/* MOBILE */

@media(
    max-width:560px
){

    body{
        background:#fff;
    }

    .auth-screen{
        display:block;

        min-height:100vh;

        padding:0;
    }

    .auth-box{
        width:100%;

        min-height:100vh;

        padding:
            28px
            22px
            36px;

        border:0;

        border-radius:0;

        box-shadow:none;
    }

    .auth-brand{
        margin-bottom:28px;
    }

    .auth-brand img{
        height:34px;
    }

    .auth-heading h1,
    .wizard-heading h1{
        font-size:28px;
    }

    .wizard-progress{
        margin-bottom:48px;
    }

    .wizard-input-line{
        grid-template-columns:
            minmax(0,1fr)
            52px;
    }

    .wizard-arrow{
        width:52px;
        height:52px;
    }

    .auth-field input,
    .wizard-input-line input,
    .wizard-password input{
        height:52px;
    }

}


/* ACCESSIBILITY */

@media(
    prefers-reduced-motion:
    reduce
){

    *,
    *::before,
    *::after{
        transition:none !important;
        animation:none !important;
    }

}


/* Signup wizard refinement */
.wizard-heading p{
    display:none !important;
}

.wizard-back{
    width:34px !important;
    height:34px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    margin:
        -8px 0
        18px -7px !important;

    padding:0 !important;

    border:0 !important;
    border-radius:50% !important;

    background:transparent !important;
    color:#2f2f2f !important;

    font-size:0 !important;
    line-height:0 !important;

    cursor:pointer !important;

    transition:
        background-color .15s ease,
        color .15s ease !important;
}

.wizard-back:hover{
    background:#f2f2f2 !important;
    color:#171717 !important;
}

.wizard-back svg{
    display:block !important;

    width:19px !important;
    height:19px !important;

    fill:none !important;
    stroke:currentColor !important;

    stroke-width:2 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.wizard-heading{
    margin-bottom:22px !important;
}

button[type="submit"],
.auth-card button[type="submit"],
.auth-submit-btn{
    width:100%;
    min-height:50px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg, var(--blue), var(--blue-dark));
    color:#fff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(37,99,235,.22);
    transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

button[type="submit"]:hover,
.auth-card button[type="submit"]:hover,
.auth-submit-btn:hover{
    transform:translateY(-1px);
    filter:brightness(.98);
    box-shadow:0 13px 28px rgba(37,99,235,.28);
}
