/*
|--------------------------------------------------------------------------
| SIMPLE PASSWORD MODE
|--------------------------------------------------------------------------
|
| This stylesheet loads AFTER the active WordPress theme stylesheet.
|
| All plugin elements use the .spm-* prefix so they don't interfere
| with the normal website.
|
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| PAGE
|--------------------------------------------------------------------------
*/

html,
body {

    width: 100%;

    min-height: 100%;

    margin: 0;

    padding: 0;

}


body.spm-page {

    min-height: 100vh;

    min-height: 100dvh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    box-sizing: border-box;


    background-image:

        linear-gradient(
            rgba(0, 0, 0, 0.34),
            rgba(0, 0, 0, 0.34)
        ),

        var(--spm-background-image);


    background-position: center;

    background-size: cover;

    background-repeat: no-repeat;

    background-attachment: fixed;


    /*
     * Use the website's font.
     */

    font-family: inherit;

}


/*
|--------------------------------------------------------------------------
| MAIN CONTAINER
|--------------------------------------------------------------------------
*/

.spm-container {

    width: 100%;

    max-width: 620px;

    margin: 0 auto;

    text-align: center;

}


/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.spm-logo {

    margin: 0 auto 28px;

    text-align: center;

}


.spm-logo img {

    display: inline-block;

    width: auto;

    max-width: 230px;

    max-height: 110px;

    height: auto;

    object-fit: contain;

}


/*
|--------------------------------------------------------------------------
| HEADLINE
|--------------------------------------------------------------------------
*/

.spm-hero-title {

    margin: 0 0 16px;

    color: #ffffff;

    font-family: inherit;

    font-size: clamp(
        32px,
        5vw,
        48px
    );

    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -0.5px;

    text-transform: uppercase;


    text-shadow:
        0 3px 12px rgba(
            0,
            0,
            0,
            0.45
        );

}


/*
|--------------------------------------------------------------------------
| MESSAGE
|--------------------------------------------------------------------------
*/

.spm-message {

    margin: 0 0 28px;

    color: #ffffff;

    font-family: inherit;

    font-size: 17px;

    line-height: 1.5;


    text-shadow:
        0 2px 8px rgba(
            0,
            0,
            0,
            0.4
        );

}


/*
|--------------------------------------------------------------------------
| TRANSPARENT BOX
|--------------------------------------------------------------------------
|
| Completely transparent.
|
|--------------------------------------------------------------------------
*/

.spm-box {

    width: 100%;

    padding: 0;

    margin: 0;


    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    backdrop-filter: none;

    -webkit-backdrop-filter: none;

}


/*
|--------------------------------------------------------------------------
| FORM
|--------------------------------------------------------------------------
*/

.spm-form {

    width: 100%;

    margin: 0;

}


/*
|--------------------------------------------------------------------------
| PASSWORD + BUTTON GROUP
|--------------------------------------------------------------------------
|
| This creates one large rounded pill.
|
|--------------------------------------------------------------------------
*/

.spm-password-group {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 56px;

    padding: 0;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    border-radius: 999px;

    box-shadow:
        0 5px 20px
        rgba(
            0,
            0,
            0,
            0.16
        );

    overflow: hidden;

}


/*
|--------------------------------------------------------------------------
| PASSWORD INPUT
|--------------------------------------------------------------------------
*/

.spm-input {

    flex: 1 1 auto;

    width: 100% !important;

    min-width: 0;

    height: 56px !important;

    margin: 0 !important;

    padding:
        0
        145px
        0
        22px !important;

    box-sizing: border-box;


    border: 0 !important;

    border-radius: 999px !important;


    background: transparent !important;


    color: #333333 !important;


    font-family: inherit;

    font-size: 16px !important;

    line-height: 56px;


    outline: none !important;

    box-shadow: none !important;

}


.spm-input::placeholder {

    color: #777777;

    opacity: 1;

}


.spm-input:focus {

    border: 0 !important;

    outline: none !important;

    box-shadow: none !important;

}


/*
|--------------------------------------------------------------------------
| SUBMIT BUTTON
|--------------------------------------------------------------------------
|
| The button sits inside the right side of the input.
|
|--------------------------------------------------------------------------
*/

.spm-button {

    position: absolute;

    top: 4px;

    right: 4px;


    width: 138px !important;

    height: 48px !important;

    min-height: 48px;


    margin: 0 !important;

    padding:
        0
        18px !important;


    border: 0 !important;

    border-radius: 999px !important;


    /*
     * Main button colour.
     */

    background: #6daed1 !important;

    color: #ffffff !important;


    font-family: inherit;

    font-size: 15px !important;

    font-weight: 600;

    line-height: 48px;


    text-align: center;

    white-space: nowrap;


    cursor: pointer;


    box-shadow: none !important;


    transition:
        background-color 0.2s ease;

}


.spm-button:hover {

    background: #5799bd !important;

    color: #ffffff !important;

}


.spm-button:active {

    background: #4e8eaf !important;

}


/*
|--------------------------------------------------------------------------
| ERROR MESSAGE
|--------------------------------------------------------------------------
*/

.spm-error {

    margin: 10px 0 0;

    padding: 0;

    background: transparent !important;

    border: 0 !important;

    color: #ffdddd;

    font-family: inherit;

    font-size: 14px;

    line-height: 1.4;

    text-align: center;

    text-shadow:
        0 1px 4px rgba(
            0,
            0,
            0,
            0.35
        );

}


/*
|--------------------------------------------------------------------------
| ACCESSIBILITY
|--------------------------------------------------------------------------
*/

.spm-screen-reader-text {

    position: absolute !important;

    width: 1px !important;

    height: 1px !important;

    padding: 0 !important;

    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(
        0,
        0,
        0,
        0
    ) !important;

    white-space: nowrap !important;

    border: 0 !important;

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {


    body.spm-page {

        padding: 18px;

        background-attachment: scroll;

    }


    .spm-logo {

        margin-bottom: 22px;

    }


    .spm-logo img {

        max-width: 190px;

        max-height: 90px;

    }


    .spm-hero-title {

        font-size: 30px;

    }


    .spm-message {

        font-size: 15px;

        margin-bottom: 22px;

    }


    .spm-password-group {

        min-height: 52px;

    }


    .spm-input {

        height: 52px !important;

        padding-left: 18px !important;

        padding-right: 120px !important;

        line-height: 52px;

        font-size: 15px !important;

    }


    .spm-button {

        top: 4px;

        right: 4px;

        width: 112px !important;

        height: 44px !important;

        min-height: 44px;

        line-height: 44px;

        padding:
            0
            12px !important;

        font-size: 14px !important;

    }

}