/*
 * Full-screen layout for the sign in / sign up pages.
 *
 * Loaded only by those two views, and scoped to body.auth-fullscreen which they
 * set via Theme::set('bodyClass', ...). Nothing here leaks to the rest of the
 * site.
 */

body.auth-fullscreen .page-wraper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* The auth section fills the viewport. */
body.auth-fullscreen .twm-auth-full {
    flex: 1 0 auto;
    min-height: 100vh;
}

body.auth-fullscreen .twm-auth-full > .container-fluid,
body.auth-fullscreen .twm-auth-full > .container-fluid > .row {
    min-height: 100vh;
}

body.auth-fullscreen .twm-auth-full > .container-fluid {
    padding: 0;
}

body.auth-fullscreen .twm-auth-full > .container-fluid > .row {
    margin: 0;
}

/* Media panel: artwork centred, no scroll of its own. */
body.auth-fullscreen .twm-log-reg-media-wrap {
    padding: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
}

body.auth-fullscreen .twm-log-reg-media {
    width: 100%;
    padding-bottom: 0;
}

body.auth-fullscreen .twm-l-media {
    padding: 0;
    background-color: transparent;
}

body.auth-fullscreen .twm-l-media img {
    max-width: 620px;
    width: 100%;
    height: auto;
}

/* Form column: vertically centred, comfortable measure. */
body.auth-fullscreen .twm-auth-form-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px 84px;
}

body.auth-fullscreen .twm-log-reg-form-wrap {
    width: 100%;
    max-width: 430px;
    padding: 0;
}

body.auth-fullscreen .twm-log-reg-logo-head {
    margin-bottom: 28px;
    text-align: start;
}

body.auth-fullscreen .log-reg-form-title {
    font-size: 26px;
    font-weight: 600;
    color: #16283f;
    display: block;
}

body.auth-fullscreen .twm-auth-lead {
    margin: 6px 0 26px;
    font-size: 14px;
    color: #8b9bb1;
}

/*
 * Field styling is deliberately NOT overridden here.
 *
 * The theme already styles these through form.auth-form .form-control
 * (background #f0f6fe, with .auth-input-icon positioned over it), which is what
 * the forgot-password page shows. An earlier version of this file forced white
 * with a border and, being more specific, beat that rule - which is why sign in
 * and sign up looked different from forgot password.
 */

body.auth-fullscreen .twm-log-reg-inner .site-button {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    height: 50px;
}

/*
 * Slim footer.
 *
 * The site footer is not rendered on these pages at all - partials/footer.blade.php
 * skips it when the slimFooter region is set - so nothing here hides anything.
 * This bar sits at the foot of the form column, clear of the artwork panel, and
 * carries the same copyright the main footer shows.
 */
body.auth-fullscreen .twm-auth-mini-footer {
    position: absolute;
    inset-inline: 32px;
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #9aabc0;
}

body.auth-fullscreen .twm-auth-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.auth-fullscreen .twm-auth-mini-footer a {
    color: #9aabc0;
    text-decoration: none;
}

body.auth-fullscreen .twm-auth-mini-footer a:hover,
body.auth-fullscreen .twm-auth-mini-footer a:focus {
    color: #16283f;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    body.auth-fullscreen .twm-log-reg-media-wrap {
        position: static;
        height: auto;
        min-height: 0;
        padding: 32px 24px 8px;
    }

    body.auth-fullscreen .twm-auth-full,
    body.auth-fullscreen .twm-auth-full > .container-fluid,
    body.auth-fullscreen .twm-auth-full > .container-fluid > .row {
        min-height: 0;
    }

    body.auth-fullscreen .twm-l-media img {
        max-width: 360px;
    }

    body.auth-fullscreen .twm-auth-form-col {
        flex-direction: column;
        padding: 8px 24px 40px;
    }

    body.auth-fullscreen .twm-auth-mini-footer {
        position: static;
        justify-content: center;
        text-align: center;
        margin-top: 36px;
    }
}
