@font-face {
    font-family: "Gotham-Book";
    src: url("../fonts/gotham-fonts/subset-Gotham-Book.woff2") format("woff2"),
    url("../fonts/gotham-fonts/subset-Gotham-Book.woff") format("woff");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gotham-Bold";
    src: url("../fonts/gotham-fonts/subset-Gotham-Bold.woff2") format("woff2"),
    url("../fonts/gotham-fonts/subset-Gotham-Bold.woff") format("woff");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gotham-Medium";
    src: url("../fonts/gotham-fonts/subset-Gotham-Medium.woff2") format("woff2"),
    url("../fonts/gotham-fonts/subset-Gotham-Medium.woff") format("woff");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: Poppins-Regular;
    src: url("../fonts/poppins/Poppins-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap
}

body {
    min-width: 320px;
    font-size: 0.875rem;
    background: #e7e7e7;
    color: #444;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    font-family: Poppins-Regular, arial, sans-serif;
}

div {
    box-sizing: border-box;
}

input::placeholder {
    font-size: .875rem;
}

.hidden {
    display: none !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

.lm-logo {
    background: url('../img/lm-logo.svg');
}

.cui-login-input {
    font-size: 16px !important;
}

.cui-form-group {
    margin: 0 0 1em;
}

form input[type="submit"] {
    width: 100%;
    cursor: pointer;
}

#loginHelp {
    color: #232222;
    font-size: 12px;
    margin-top: 20px;
    padding: 20px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    box-sizing: border-box;
    display: none;
}

#loginHelp .cui-tertiary-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.cui-login-error {
    margin: 15px 0 12px;
    color: #c00;
    font-weight: 700;
}

#trust .bbb {
    font-size: 0;
    margin-left: 0;
    display: inline-block;
    background: url(//seal-utah.bbb.org/logo/ruhzbum/bbb-90048270.png) no-repeat;
    width: 121px;
    background-size: cover;
    height: 55px;
}

#footer {
    font-size: 10px;
    color: #666;
    width: 100%;
}

#footer p {
    margin: 0;
}

#footer a {
    color: #333;
    margin-right: 1em;
}

.copyright-section {
    padding: 10px 0 15px;
}

.cui .footer-logos span {
    display: inline-block;
}

#trust a {
    display: inline-block;
    vertical-align: text-top;
}

.flex {
    display: flex;
}

.flex.flex-column {
    flex-direction: column;
}

.flex.justify-center {
    justify-content: center;
}

.flex.justify-space-evenly {
    justify-content: space-evenly;
}

.flex.gap-1rem {
    gap: 1rem;
}

@media only screen and (max-width: 767px) {
    #loginHelp {
        background: #f7f7f7;
        border: 1px solid #ddd;
        margin-top: 14px;
        padding: 10px;
    }

    .cui-login #loginHelp {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .cui .footer-section {
        text-align: center;
    }
}

/* =========================================================================
   Two-column login redesign (Attorney / Client) — selectors are scoped with
   the .cui-login body class so they win over the vendored cui/pages/login.css
   rules that load after styles.css. Colors reuse existing brand tokens
   (#02397b navy, #337ab7 steel-blue, #222f64 logo navy). Fonts unchanged.
   ========================================================================= */

.cui.cui-login {
    min-height: 100vh;
}

/* Container becomes a centered two-column flex row */
.cui-login .cui-login-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: transparent; /* page background comes from the body theme */
    box-sizing: border-box;
}

/* Left branding column */
.lm-brand-col {
    flex: 1 1 0;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.cui-login .cui-login-logo > img {
    width: 260px;
    max-width: 100%;
}

/* "FIND THE RIGHT LAWYER NOW" tagline — render heavier (Poppins ships a single
   weight, so thicken the glyphs with a text-stroke on top of the bold weight). */
.cui-login .cui-login-logo > span {
    font-weight: 900;
    -webkit-text-stroke: 0.6px #222f64;
}

/* Right login card */
.lm-card {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 650px;
    padding: 2.5rem 2.25rem;
    border-radius: 16px;
    box-sizing: border-box;
}

/* The login page keeps the narrow card from the mockups; the other login-theme
   pages (register, reset/update password, authenticator, etc.) use the wider card. */
.lm-login-page .lm-card {
    max-width: 460px;
}

/* Centered card heading ("Lawyer Login" / "Client Login") */
.lm-card-heading {
    margin: 0 0 1.75rem;
    text-align: center;
    color: #02397b;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Forgot username / password row */
.lm-forgot-row {
    margin-top: 1rem;
}

/* Outlined cross-link button ("Are you a lawyer/client? Log in here") */
.lm-counterpart-link {
    display: none; /* shown via login.js once the user type is known */
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 2.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #02397b;
    border-radius: 8px;
    background: transparent;
    color: #02397b !important;
    font-size: 1rem;
    text-decoration: none;
    box-sizing: border-box;
}

.lm-counterpart-link span {
    font-weight: 600;
    text-decoration: underline;
}

.lm-counterpart-link:hover {
    background: rgba(2, 57, 123, 0.05);
}

/* Footer sits inside the card */
.lm-card #footer {
    margin-top: 5rem;
}

.lm-card #trust {
    align-items: center;
}

/* ---------- Lawyer / Attorney theme: white page, light-blue card, navy button ---------- */
body.lm-attorney {
    background: #ffffff;
}

body.lm-attorney .lm-card {
    background: #dde7fa;
}

body.lm-attorney .cui-btn--primary {
    background: #02397b;
}

/* ---------- Client theme: light-blue page, white card, steel-blue button ---------- */
body.lm-client {
    background: #dfe8fb;
}

body.lm-client .lm-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(20, 40, 90, 0.08);
}

body.lm-client .cui-btn--primary {
    background: #337ab7;
}

/* ---------- Responsive: stack to a single column ---------- */
@media only screen and (max-width: 860px) {
    .cui-login .cui-login-container {
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .lm-brand-col {
        order: -1;
        flex: 0 0 auto; /* don't grow into the leftover vertical space (was 1 1 0) */
        max-width: 100%;
        gap: 1.25rem;
    }

    .lm-card {
        max-width: 460px;
    }
}

/* ---------- Phone-focused tightening ---------- */
@media only screen and (max-width: 600px) {
    .lm-card {
        padding: 1.75rem 1.5rem;
    }

    .lm-card #footer {
        margin-top: 2.5rem;
    }

    .cui-login .cui-login-logo > img {
        width: 210px;
    }

    .lm-counterpart-link {
        margin-top: 2rem;
    }
}
