@import 'variables.css' layer(global);
@import 'colors.css' layer(global);
@import 'fonts.css' layer(global);
@import 'global-messaging.css' layer(global);
@import 'footer.css' layer(global);
@import 'buttons.css' layer(global);

*,
::before,
::after {
    box-sizing: inherit;
}

/*
 THESE ARE USED TO HIDE / MODIFY BUILT IN LOGIN PAGE STYLES 
 These should be to be removed via javascript, but start by hiding.
 */

div#login {
    display: none;
}

/*
 END - HIDE / MODIFY BUILT IN LOGIN PAGE STYLES 
 */

/*
 THESE ARE USED FOR LOCALHOST FUNCTIONALITY
 */
#localhost-login {
    padding-bottom: 2em;
    margin: auto;
}

#localhost-login span {
    display: table;
    margin: 0 auto;
}

#login-toggle {
    display: none;
    text-align: center;
}

#wp-submit {
    background-color: var(--violet-700);
    color: white !important;
    border-radius: 22px;
    border: none;
    padding: 8px;
}

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    color: white;
    background-color: var(--violet-700);
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    position: absolute;
    z-index: 1;

    top: -8.5rem;
    right: -7rem;
}

.tooltip:hover {
    cursor: pointer;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

/*
 END - USED FOR LOCALHOST FUNCTIONALITY
 */

body {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: var(--body-width) !important;
    text-align: left !important;
    background-repeat: no-repeat;
    background-position: top left;
    background: linear-gradient(180deg,
            var(--dark-inner-background) 0%,
            var(--dark-background) 100%) !important;
    font-family: Avenir !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0px !important;
    margin: 0 !important;
    color: var(--slate-900) !important;
}

.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: var(--body-width);
}

.container {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    padding-top: 25px;
    padding-bottom: 65px;
    display: flex;
    max-height: 70px;
    height: 70px;
    margin: 0 20px;
    max-width: var(--max-content-large-width);
    align-items: center;
    width: calc(var(--body-width) - 40px);
    ;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    max-height: 30px;
}

.login h1 {
    font-family: AvenirBlack;
    font-style: normal;
    font-weight: 800;
    font-size: 36px;
    line-height: 54px;

    text-align: left;
    width: 300px;
}

section {
    display: flex;
    margin: 0px 20px;
    max-width: var(--max-content-large-width);
    background-color: white;
}

section .info {
    margin: 80px 0;
    padding: 40px 80px;
}

section .info a,
section .info a:hover,
section .info a:visited,
section .info a:active {
    color: var(--blue-700);
    text-decoration: none;
}

section .login {
    padding: 40px 80px;
    width: 100%;
    border-right: 2px solid var(--blue-700);
    margin: 80px 0;
}

a,
a:visited {
    color: var(--blue-700);
    text-decoration: none;
}

a:hover {
    color: var(--blue-800);
    text-decoration-line: underline !important;
}

a:active {
    color: var(--blue-900);
    text-decoration-line: underline !important;
}

.sign-in .card {
    display: flex;
    margin-bottom: 32px;
}

.sign-in .card .icon {
    flex-basis: 72px;
    flex-grow: 0;
    flex-shrink: 0;
}

.card {
    all: unset;
    /* required to override build in WP styles */
}

.card .icon img,
svg {
    width: 30.4px;
    height: 30.4px;
}

.card .icon path {
    fill: --indigo-900;
}

.card .content h3 {
    font-family: AvenirBlack;
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;

    margin-top: 0;
    margin-bottom: 4px;
}

.card .content div {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.sign-in .card .content div {
    color: var(--slate-900);
}

.login h2,
.login h4 {
    margin-top: 0;
    margin-bottom: 4px;
    display: flex;
    justify-content: flex-start;
}

.login h4 {
    width: 70%;
}

.login h2 {
    font-family: AvenirHeavy;
    font-weight: 900;
    font-size: 24px;
    line-height: 36px;
}

.login h4 {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;

    padding-top: 12px;
}

.login .button {
    font-size: 16px;
    font-weight: 900;
    line-height: 16px;

    margin: 35px 0;
    width: 300px;
}

.login .access-info {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;

    margin-bottom: 40px;
}

.login .help-links {
    display: flex;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.login .help-links .icon {
    color: var(--blue-700);
}

.login .help-links div:first-child {
    padding-right: 16px;
    border-right: 1px solid var(--slate-900);
}

.help-links div:last-child {
    padding-left: 16px;
}

footer {
    margin-top: 48px;
}

footer .divider {
    margin: 32px 80px;
    border-top: 1px solid var(--indigo-700);
}

.logo-container img.wide {
    width: 234px;
    display: flex;
}

.logo-container img.narrow {
    width: 234px;
    display: none;
    height: 50px;
}

@media screen and (max-width: 1420px) {
    .login h4 {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .logo-container {
        justify-content: center;
        padding-left: 0px;
        padding-top: 25px;
        padding-bottom: 50px;
    }

    .logo-container img.wide {
        display: none;
    }

    .logo-container img.narrow {
        display: block;
        max-height: 50px;
    }

    .login h1 {
        text-align: center;
        width: auto;
        font-weight: 800;
        font-size: 28px;
        line-height: 42px;
    }

    .login h2,
    .login h4 {
        justify-content: center;
    }

    .login h2 {
        font-weight: 900;
        font-size: 20px;
        line-height: 30px;
    }

    .login h4 {
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
    }

    .login .button {
        align-content: center;
    }

    .login .access-info {
        font-weight: 400;
        font-size: 14px;
        line-height: 21px;

        text-align: center;
    }

    .login .help-links {
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;

        justify-content: center;
    }

    section {
        flex-wrap: wrap;
        margin: 0px 20px;
    }

    section .login {
        margin: 0px 48px 40px 48px;
        padding: 0px 0px 40px 0px;
        align-items: center;
        display: flex;
        flex-direction: column;
        border-right: none;
        border-bottom: 2px solid var(--indigo-700);
    }

    section .info {
        padding: 0px 20px;
        margin: 0 20px;
    }

    footer .divider {
        margin: 32px 20px;
    }
}

@media screen and (max-width: 810px) {
    section .login {
        margin: 0px 20px 40px 20px;
        padding: 0px 0px 40px 0px;
    }
}

@media screen and (max-width: 576px) {
    .sign-in .content {
        margin: 0px 20px;
    }

    .sign-in .info .content {
        margin: 0px;
    }
}

/* @media (max-width: 428px) {
    .sign-in .content {
        margin: 0px 20px;
    }
} */

.screen-reader-text,
.screen-reader-text span {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */
}

/* login.css */
#login {
    max-width: 400px;
    margin: 0px auto 60px auto;
    padding: 32px 24px 24px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    font-family: 'Segoe UI', Arial, sans-serif;
}

#login_error {
    background: #ffeaea;
    color: #b30000;
    border: 1px solid #b30000;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 4px;
    font-size: 15px;
}

#loginform label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

#loginform .input {
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background: #f9f9f9;
}

#loginform p {
    display: flex;
    flex-direction: column;
}

.user-pass-wrap {
    margin-bottom: 18px;
}

.wp-pwd {
    display: flex;
    align-items: center;
}

.password-input {
    flex: 1;
}

.wp-hide-pw {
    display: none !important;
}

#login_error {
    display: none;
}

#legacy-login-header {
    color: #666;
    justify-content: center;
    width: 100%;
    font-size: 15px;;
    text-align: center;
}

.submit .button-primary {
    width: 100%;
    padding: 12px;
    font-size: 17px;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.submit .button-primary:hover {
    background: #005177;
}