﻿/* ============================================================
   /assets/css/login.css (DROP-IN) — OPTION B (Unified Background)
   FIXES INCLUDED:
   - Promo card content is ALWAYS centered (heading, <p>, button)
   - Promo heading no longer “shrinks” independently (removed vw/clamp)
   - Promo heading will NEVER overflow the white card (wraps if it must)
   - Button spacing pushed down a bit (more breathing room)
   ============================================================ */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Modern sanity: predictable sizing everywhere */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== Theme tokens ===== */
:root {
    --qq-primary: #337ab7;
    --qq-primary-dark: #245681;
    --qq-primary-deep: #1b2838;
    --qq-bg: #f3f6fb;
    --qq-surface: #ffffff;
    --qq-border: #d8dde6;
    --qq-text: #1f2937;
    --qq-muted: #6b7280;
    --qq-danger: #CF4F43;
    --qq-success: #3c763d;
}

/* ============================================================
   OPTION B: Unified background (BODY owns the gradient)
   + FIX: Ensure WebForms form/layout can actually be 100% tall
   ============================================================ */
html, body {
    width: 100%;
    height: 100%;
    font-family: "Open Sans", sans-serif;
    color: var(--qq-text);
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

    /* WebForms <form> is the parent of .container — give it height */
    body > form,
    form#form1 {
        min-height: 100vh;
        height: 100%;
    }

input {
    font-size: 14px;
    font-weight: 400;
    color: #4F545C;
}

a, input {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* IMPORTANT: don't force global span font-size */
span {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background: transparent;
}

label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

a:link, a:visited {
    color: var(--qq-primary);
    background-color: transparent;
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--qq-primary-dark);
    text-decoration-thickness: from-font;
}

/* Never underline the promo "button" */
.m-box-button,
.m-box-button:hover,
.m-box-button:focus,
.m-box-button:active,
#Login1_PromoBtn,
#Login1_PromoBtn:hover,
#Login1_PromoBtn:focus,
#Login1_PromoBtn:active {
    text-decoration: none !important;
}

input[type="checkbox"] {
    margin-right: 8px;
    box-sizing: border-box;
    margin-top: 2px;
}

.pr {
    position: relative;
}

.pt-1 {
    padding-top: .4rem;
}

.pt-2 {
    padding-top: 1.2rem;
}

.pt-3 {
    padding-top: 2.2rem;
}

.pt-4 {
    padding-top: 4rem;
}

.fl {
    float: left;
}

.pd {
    padding-top: 110px;
    padding-top: clamp(56px, 10vh, 110px);
    padding-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    width: 350px;
}

.dn {
    display: none;
}

.disabled {
    pointer-events: none;
}

input[type=submit].disabled {
    opacity: .65;
}

.container {
    width: 100%;
    height: 100%;
    min-height: 100vh; /* avoids “stacked backgrounds” seam */
}

.wrapper-left {
    width: 50%;
    height: 100%;
    min-height: 100vh;
    float: left;
    overflow: hidden;
    transition: all 0.25s;
    background: transparent; /* body gradient shows through */
}

.wrapper-right {
    width: 50%;
    height: 100%;
    min-height: 100vh;
    float: left;
    overflow: hidden;
    transition: all 0.25s;
    background: #fff; /* underlay only; image covers it */
}

/* Legacy anchor (kept; not required by current markup) */
.wrapper-content {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

/* ===== Validation / messages ===== */
#validate {
    display: inline-block;
    position: relative;
    font-size: 14px;
    padding-top: 5px;
}

#resetMessage {
    position: absolute;
    top: 10px;
}

.text-message {
    font-size: 14px;
    padding-bottom: 5px;
    color: var(--qq-muted);
}

    .text-message.error {
        color: var(--qq-danger);
    }

.errorMessage {
    font-size: 14px;
    color: var(--qq-danger);
}

.text-success {
    font-size: 14px;
    color: var(--qq-success);
}

/* ===== Login card ===== */
#form-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(216, 221, 230, .85);
    box-shadow: 0 18px 55px rgba(17, 24, 39, 0.12);
    background: var(--qq-surface);
}

/* ===== THEME BLUE RIBBON ===== */
#colorband {
    height: 12px;
    width: 100%;
    overflow: hidden;
    background-image: linear-gradient(90deg, var(--qq-primary) 0%, #4a9adf 40%, #56b1e5 70%, var(--qq-primary) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

    #colorband > img {
        display: none;
    }

#form {
    display: block;
    padding: 14px 20px 22px;
    background-color: var(--qq-surface);
}

.m-form-input {
    display: block;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 40px;
    width: 100%;
    height: auto !important;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--qq-border) !important;
    border-radius: 10px;
    background-color: #ffffff;
    color: rgb(0,0,0);
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .m-form-input:focus {
        outline: none;
        border-color: rgba(51, 122, 183, .65) !important;
        box-shadow: 0 0 0 4px rgba(51, 122, 183, .18);
    }

.input-grouping {
    display: block;
    position: relative;
    margin: 0px;
}

.input-txt {
    display: block;
    position: relative;
    width: 100%;
}

.form-group {
    padding-top: 10px;
}

#password-input {
    display: block;
    position: relative;
    width: 100%;
}

.input-txt .fa-user {
    position: absolute;
    top: 13px;
    left: 15px;
    color: #9ca3af;
}

#password-input .fa-lock {
    position: absolute;
    left: 15px;
    top: 13px;
    color: #9ca3af;
}

.login_black {
    width: 100%;
    line-height: 34px;
    padding: 10px 18px;
    background-color: var(--qq-primary) !important;
    border: 1px solid var(--qq-primary-dark) !important;
    border-radius: 12px;
    color: #FFFFFF !important;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .05s ease, opacity .2s ease, box-shadow .2s ease;
}

    .login_black:hover {
        cursor: pointer;
        opacity: .95;
        box-shadow: 0 10px 24px rgba(36, 86, 129, .22);
    }

    .login_black:active {
        transform: translateY(1px);
    }

.a-link > a {
    display: inline-block;
    width: 100%;
    margin-top: 16px;
    color: var(--qq-primary);
    font-weight: 700;
}

#reset-wrapper {
    display: none;
    padding-top: 5px;
    padding-bottom: 22px;
    padding-left: 20px;
    padding-right: 20px;
    border-top: 1px solid rgba(216, 221, 230, .85);
    background-color: #FFFFFF;
    position: relative;
}

/* ===== Logo container ===== */
#login-logo {
    padding: 0 15px 12px;
    width: 100%;
    text-align: center;
}

/* ===== Logos: Vertical stack ===== */
.login-logos.login-logos--stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.login-logos__subtext {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--qq-muted);
    opacity: .9;
}

.odc-brand-logo {
    height: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.qq-login-logo {
    height: auto;
    max-width: 175px;
    max-height: 75px;
    object-fit: contain;
    display: block;
}

/* ============================================================
   RIGHT IMAGE PANEL (RESTORED)
   ============================================================ */
#image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    background-image: url("/App_Themes/Oshkosh/img/login-splash.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: 0;
}

/* Promo overlay container */
.m-box {
    position: absolute;
    left: 0;
    right: 0;
    top: 55% !important;
    transform: translateY(-50%);
    z-index: 1;
}

/* Promo card */
.m-box-wrapper {
    width: min(760px, calc(100% - 48px));
    height: auto;
    margin: 0 auto;
    padding: 22px 26px 20px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: 0 18px 55px rgba(17, 24, 39, 0.18);
    /* FIX: keep everything centered always */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ensure inner content doesn't fight centering */
.m-box-content {
    width: 100%;
    text-align: center;
}

/* Promo heading
   FIX: no vw/clamp => it won't randomly shrink vs the rest of the card */
.m-box-heading,
#Login1_PromoHeading {
    /*font-weight: 900;*/
    letter-spacing: -0.02em;
    color: #3F434C;
    /* Stable size */
    font-size: 25px !important;
    /* FIX: never spill outside the card */
    white-space: normal;
    overflow: visible;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Promo body text (centered + nicer line length) */
.m-box-text,
#Login1_PromoText {
    display: block;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    /* Keeps it visually centered instead of feeling “left shoved” */
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Promo button */
.m-box-button,
#Login1_PromoBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    max-width: 100%;
    height: 56px;
    /* FIX: push button down a bit */
    margin-top: 20px;
    position: static;
    top: auto;
    background: #3F434C !important;
    color: #83D0CA !important;
    font-size: 1.1em;
    font-weight: 900;
    line-height: 56px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
    transition: transform .06s ease, opacity .18s ease, box-shadow .18s ease;
}

    .m-box-button:hover,
    #Login1_PromoBtn:hover {
        opacity: .96;
        box-shadow: 0 14px 36px rgba(17, 24, 39, 0.22);
    }

    .m-box-button:active,
    #Login1_PromoBtn:active {
        transform: translateY(1px);
    }

.slogan-container {
    display: none;
}

/* ===== Spinner Overlay ===== */
.qq-login-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

    .qq-login-loading.is-visible {
        display: flex;
    }

.qq-login-loading__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
}

.qq-login-loading__card {
    position: relative;
    z-index: 1;
    width: 320px;
    max-width: calc(100vw - 48px);
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(216, 221, 230, .9);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 18px 55px rgba(17, 24, 39, 0.18);
}

.qq-spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 6px solid rgba(51,122,183,.18);
    border-top-color: var(--qq-primary);
    animation: qqspin 0.9s linear infinite;
}

.qq-login-loading__text {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .1px;
    color: #111827;
}

@keyframes qqspin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 1025px) {
    .wrapper-right {
        display: none;
    }

    .wrapper-left {
        width: 100% !important;
    }

    #image-container {
        display: none;
    }
}

@media screen and (max-height: 840px) {
    .pd {
        padding-top: 80px;
    }
}

@media screen and (max-height: 760px) {
    .pd {
        padding-top: 60px;
    }
}

@media screen and (max-height: 670px) {
    .pd {
        padding-top: 30px;
    }
}

@media screen and (max-height: 600px) {
    .pd {
        padding-top: 20px;
    }
}

@media screen and (max-width: 400px) {
    .pd {
        width: 100%;
        margin-right: 0px;
        margin-left: 0px;
        padding-left: 16px;
        padding-right: 16px;
    }

    #form-wrapper {
        box-shadow: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    #form {
        border-radius: 0;
    }
}
