:root {
    --bos-navy-950: #001229;
    --bos-navy-900: #001a3f;
    --bos-navy-800: #082b57;
    --bos-navy-700: #163f6f;

    --bos-gold: #fdbb00;
    --bos-gold-soft: #ffcf4a;

    --bos-white: #ffffff;
    --bos-surface: #f4f7fb;
    --bos-line: #d8e1ec;

    --bos-text: #001a3f;
    --bos-muted: #64748b;

    --bos-radius: 22px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.95fr)
        minmax(520px, 1.05fr);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--bos-text);
    background: var(--bos-surface);
}


/* ==================================================
   CORPORATE BRAND PANEL
   ================================================== */

.bos-auth-brand-panel {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        clamp(44px, 7vw, 90px)
        clamp(38px, 6vw, 86px);

    color: white;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(47, 103, 164, .55),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--bos-navy-950) 0%,
            var(--bos-navy-900) 52%,
            var(--bos-navy-700) 100%
        );
}

.bos-auth-brand-inner {
    width: 100%;
    max-width: 650px;
}

.bos-auth-logo-plate {
    display: inline-flex;
    align-items: center;

    max-width: 370px;

    margin-bottom: 52px;
    padding: 18px 24px;

    background: white;
    border-radius: 16px;
}

.bos-auth-wordmark {
    display: block;
    width: min(100%, 325px);
    height: auto;
}

.bos-auth-eyebrow {
    margin: 0 0 18px;

    color: var(--bos-gold);

    font-size: 12px;
    line-height: 1.3;

    font-weight: 850;
    letter-spacing: .17em;
}

.bos-auth-brand-title {
    margin: 0;

    color: white;

    font-size: clamp(2.9rem, 5.2vw, 5.3rem);
    line-height: .98;

    font-weight: 850;
    letter-spacing: -.055em;
}

.bos-auth-brand-title span {
    color: var(--bos-gold);
}

.bos-auth-brand-copy {
    max-width: 560px;

    margin: 28px 0 0;

    color: rgba(255, 255, 255, .88);

    font-size: 1.08rem;
    line-height: 1.75;
}

.bos-auth-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 38px;
}

.bos-auth-points div {
    min-height: 102px;

    padding: 18px;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;

    background: rgba(255,255,255,.075);
}

.bos-auth-points strong,
.bos-auth-points span {
    display: block;
}

.bos-auth-points strong {
    margin-bottom: 6px;

    color: white;

    font-size: 14px;
}

.bos-auth-points span {
    color: rgba(255,255,255,.70);

    font-size: 12px;
    line-height: 1.45;
}

.bos-auth-tagline {
    margin: 36px 0 0;

    color: rgba(255,255,255,.72);

    font-size: 13px;
}

.bos-auth-tagline strong {
    color: var(--bos-gold);
}


/* ==================================================
   CUSTOMER AUTH AREA
   ================================================== */

main {
    align-self: center;
    justify-self: center;

    width: min(calc(100% - 64px), 570px);

    margin: 56px 32px;
    padding: clamp(36px, 5vw, 56px);

    background: white;

    border: 1px solid var(--bos-line);
    border-radius: var(--bos-radius);

    box-shadow:
        0 22px 55px rgba(0, 26, 63, .10);
}


/* Remove the temporary pseudo-logo system. */
main::before,
main::after,
h1::before {
    display: none !important;
    content: none !important;
}


main::before {
    content: none;
}


/* Corporate heading */

main h1 {
    margin: 0 0 12px;

    color: var(--bos-text);

    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.05;

    font-weight: 850;
    letter-spacing: -.045em;
}

main h1::before {
    content: none;
}

main > p:first-of-type {
    margin-top: 0;
    margin-bottom: 30px;

    color: var(--bos-muted);

    font-size: 15px;
    line-height: 1.65;
}


/* Give authentication area a corporate label */

main::selection {
    background: var(--bos-gold);
    color: var(--bos-navy-950);
}


/* ==================================================
   FORM CONTROLS
   ================================================== */

label {
    display: block;

    margin: 18px 0 7px;

    color: var(--bos-text);

    font-size: 13px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;

    padding: 12px 14px;

    color: var(--bos-text);

    font: inherit;

    background: white;

    border: 1px solid #cbd7e5;
    border-radius: 10px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: var(--bos-gold);

    box-shadow:
        0 0 0 4px rgba(253,187,0,.14);
}


/* ==================================================
   BUTTONS
   ================================================== */

button {
    min-height: 46px;

    padding: 10px 16px;

    border: 1px solid transparent;
    border-radius: 10px;

    color: var(--bos-navy-950);

    font: inherit;
    font-size: 14px;
    font-weight: 750;

    background: #edf2f8;

    cursor: pointer;

    transition:
        transform .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}

button:hover {
    transform: translateY(-1px);
}


/* Primary submission action */

form > button:last-child {
    width: 100%;

    margin-top: 22px;

    color: var(--bos-navy-950);

    background: var(--bos-gold);

    box-shadow:
        0 8px 20px rgba(253,187,0,.20);
}

form > button:last-child:hover {
    background: var(--bos-gold-soft);
}


/* Current mode button */
button[aria-current="page"],
button.active {
    background: var(--bos-gold);
}


/* ==================================================
   MESSAGES
   ================================================== */

.small {
    color: var(--bos-muted);

    font-size: 12px;
    line-height: 1.55;
}

.alert,
.message,
.error {
    padding: 12px 14px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.5;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1050px) {

    body {
        grid-template-columns:
            minmax(330px, .8fr)
            minmax(440px, 1.2fr);
    }

    .bos-auth-brand-panel {
        padding: 48px 36px;
    }

    .bos-auth-logo-plate {
        margin-bottom: 38px;
    }

    .bos-auth-points {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 760px) {

    body {
        display: block;
        min-height: 100vh;
    }

    .bos-auth-brand-panel {
        min-height: auto;

        padding:
            30px 22px
            34px;
    }

    .bos-auth-logo-plate {
        max-width: 275px;

        margin-bottom: 28px;
        padding: 12px 16px;
    }

    .bos-auth-brand-title {
        font-size: clamp(2.25rem, 10vw, 3.4rem);
    }

    .bos-auth-brand-copy {
        margin-top: 18px;

        font-size: .95rem;
    }

    .bos-auth-points {
        display: none;
    }

    .bos-auth-tagline {
        margin-top: 22px;
    }

    main {
        width: calc(100% - 28px);

        margin: 14px;

        padding: 28px 22px;

        border-radius: 16px;

        box-shadow: none;
    }

    main h1 {
        font-size: 2rem;
    }

}


/* ==================================================
   VERY SMALL MOBILE
   ================================================== */

@media (max-width: 420px) {

    .bos-auth-brand-panel {
        padding: 24px 18px 28px;
    }

    .bos-auth-logo-plate {
        width: 100%;
        max-width: 255px;
    }

    main {
        width: calc(100% - 20px);

        margin: 10px;

        padding: 24px 18px;
    }

    button {
        width: 100%;

        margin-top: 6px;
    }

}

/* ==================================================
   BUSINESS OS AUTH FOOTER
   ================================================== */

.bos-auth-footer {
    grid-column: 1 / -1;

    background: #001229;
    color: #ffffff;

    border-top: 3px solid #fdbb00;
}

.bos-auth-footer-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;
    padding: 28px 0;

    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.bos-auth-footer-brand {
    min-width: 0;
}

.bos-auth-footer-logo {
    display: block;

    width: min(240px, 100%);
    height: auto;

    background: #ffffff;
    border-radius: 10px;

    padding: 8px 12px;
}

.bos-auth-footer-brand p {
    margin: 10px 0 0;

    color: rgba(255,255,255,.78);

    font-size: 12px;
    line-height: 1.5;
}

.bos-auth-footer-brand strong {
    color: #fdbb00;
}

.bos-auth-footer-contact,
.bos-auth-footer-legal {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 18px;
}

.bos-auth-footer-contact {
    justify-content: center;
}

.bos-auth-footer-legal {
    justify-content: flex-end;
}

.bos-auth-footer a,
.bos-auth-footer span {
    color: rgba(255,255,255,.82);

    font-size: 12px;
    line-height: 1.5;

    text-decoration: none;
}

.bos-auth-footer a:hover {
    color: #fdbb00;
}


/* Keep footer below full-height authentication shell. */

@media (min-width: 761px) {

    body {
        min-height: 100vh;

        grid-template-rows:
            minmax(100vh, auto)
            auto;
    }

    .bos-auth-brand-panel,
    main {
        grid-row: 1;
    }

    .bos-auth-footer {
        grid-row: 2;
    }

}


/* Tablet / mobile footer */

@media (max-width: 760px) {

    .bos-auth-footer-inner {
        width: calc(100% - 36px);

        grid-template-columns: 1fr;

        gap: 22px;

        text-align: center;
    }

    .bos-auth-footer-logo {
        margin: 0 auto;
    }

    .bos-auth-footer-contact,
    .bos-auth-footer-legal {
        justify-content: center;
    }

}


/* ==================================================
   FULL CORPORATE AUTH FOOTER
   ================================================== */

.bos-auth-footer {
    grid-column: 1 / -1;
    width: 100%;

    color: #ffffff;
    background: #001229;

    border-top: 3px solid #fdbb00;
}

.bos-auth-footer-main {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
    padding: 52px 0 44px;

    display: grid;
    grid-template-columns: 1.45fr repeat(3, .8fr);
    gap: 48px;
    align-items: start;
}

.bos-auth-footer-brand {
    max-width: 350px;
}

.bos-auth-footer-logo {
    display: block;

    width: min(275px, 100%);
    height: auto;

    margin: 0 0 20px;
    padding: 10px 14px;

    background: #ffffff;
    border-radius: 10px;
}

.bos-auth-footer-tagline,
.bos-auth-footer-description {
    margin: 0;
}

.bos-auth-footer-tagline {
    color: rgba(255,255,255,.88);

    font-size: 14px;
    line-height: 1.55;
}

.bos-auth-footer-tagline strong {
    color: #fdbb00;
}

.bos-auth-footer-description {
    max-width: 310px;

    margin-top: 16px;

    color: rgba(255,255,255,.70);

    font-size: 14px;
    line-height: 1.65;
}

.bos-auth-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
}

.bos-auth-footer-column strong {
    margin-bottom: 4px;

    color: #fdbb00;

    font-size: 15px;
    font-weight: 800;
}

.bos-auth-footer-column a {
    color: rgba(255,255,255,.82);

    font-size: 14px;
    line-height: 1.45;

    text-decoration: none;
}

.bos-auth-footer-column a:hover {
    color: #fdbb00;
}

.bos-auth-footer-bottom {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
    padding: 22px 0;

    display: flex;
    justify-content: space-between;
    gap: 24px;

    border-top: 1px solid rgba(255,255,255,.12);

    color: rgba(255,255,255,.68);

    font-size: 12px;
    line-height: 1.5;
}


/* Neutralize older compact footer rules. */

.bos-auth-footer-inner,
.bos-auth-footer-contact,
.bos-auth-footer-legal {
    display: none !important;
}


/* Tablet */

@media (max-width: 980px) {

    .bos-auth-footer-main {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .bos-auth-footer-column:last-child {
        grid-column: 2 / 4;
    }

}


/* Mobile */

@media (max-width: 700px) {

    .bos-auth-footer-main {
        width: calc(100% - 36px);

        padding: 38px 0 34px;

        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bos-auth-footer-brand {
        max-width: none;
    }

    .bos-auth-footer-logo {
        width: min(250px, 100%);
    }

    .bos-auth-footer-column:last-child {
        grid-column: auto;
    }

    .bos-auth-footer-bottom {
        width: calc(100% - 36px);

        padding: 20px 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 6px;
    }

}

