@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/*
 * [BLC-2932] Customer Hub revamp - the front end in the new BLC Brand Guidelines.
 *
 * This file is the front end's per-install stylesheet: every customer page (the platform's own
 * header.php, header-mode 1), the New Product Brief form (?apage=userinputview.php&UIV=1100) and
 * the login page all load it. The hub pages' own components (home tiles, tables, brief grid, spec
 * library) are in clientside.css, which only pages/clientarea.php loads.
 *
 * WHY THE SELECTORS START "html body". The platform loads this file twice: through the CSS loader
 * (/css/loader/?s=theme&v=$AMJSinitversion) and as a direct /css/theme.css link in header.php and
 * loginpage.php, which Apache serves with a 28 day max-age. That direct link was a fixed ?v=4 and
 * now carries $AMJSinitversion too, so bumping it in appconfig.php refreshes both. The prefix is
 * kept as a guard: a platform copy still on ?v=4 would load the cached OLD dark theme after this
 * one, and the old rules are all single-selector (body, #AMnavbar, small.form-text ...), so the
 * extra "html body" out-ranks them whichever copy is newer. Keep it on new rules too.
 *
 * Colours (Brand Guidelines p.14). No others - Pure Black is for print only, and the old green
 * and blue buttons are gone. --blc-ink2 is a tint of BLC Black for secondary text, flagged in the
 * developer brief as awaiting brand team confirmation.
 */

:root{
    --blc-yellow: #F2C300;
    --blc-black: #1E1E1E;
    --blc-white: #FFFFFF;
    --blc-stone: #D0C6B6;
    --blc-stone50: #E8E3DB;
    --blc-stone25: #F4F1ED;
    --blc-ink2: #55514C;
    --blc-font: "Montserrat", Arial, sans-serif;
    --blc-radius: 10px;
    --blc-ring: 0 0 0 3px rgba(242, 195, 0, .55);
}

/* ---------- base ---------- */

html body{
    background-color: var(--blc-white);
    color: var(--blc-black);
    font-family: var(--blc-font);
    font-size: 15px;
    line-height: 1.55;
}

html body h1, html body h2, html body h3, html body h4, html body h5, html body h6{
    font-family: var(--blc-font);
    color: var(--blc-black);
}

html body a{
    color: var(--blc-black);
}

html body :focus-visible{
    outline: 3px solid var(--blc-yellow);
    outline-offset: 2px;
}

/* ---------- header (platform header.php, built from the "header-data" option) ---------- */

html body header{
    height: auto;
}

html body #AMnavbarContainer{
    height: auto;
    background-color: var(--blc-black);
    color: var(--blc-white);
}

html body #AMnavbarContainer > .container{
    max-width: 1080px;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

html body #AMnavbar{
    background-color: transparent;
    height: auto;
    padding: 22px 0 !important; /* activemanage.css: .navbar{padding: .5rem 2rem !important} */
    line-height: 1.2;
}

/* The small-size white logo, drawn as a background so the navbar needs no markup change. The img
   stays in the page (visually hidden) so the link keeps its accessible name. 76px wide; the 22px
   padding above and below is the "height of the L" clear space (p.9). */
html body #AMnavbar .navbar-brand{
    display: block;
    width: 76px;
    height: 22px;
    padding: 0 !important;
    margin: 0;
    background: url("/images/brand/BLC-logo-small-white.svg") left center / contain no-repeat;
}

html body #AMnavbar .navbar-brand img{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

html body #AMnavbar .btn-group{
    padding-right: 0 !important;
}

/* Account: the yellow brand person icon and the word "Account" replace the white circle icon. */
html body #AMloginddmenuButton{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    padding: 6px 0;
    color: var(--blc-white);
    font-family: var(--blc-font);
    font-weight: 600;
    font-size: 14px;
}

html body #AMloginddmenuButton > svg,
html body #AMloginddmenuButton > i{
    display: none !important;
}

html body #AMloginddmenuButton::before{
    content: "";
    width: 20px;
    height: 20px;
    background-color: var(--blc-yellow);
    -webkit-mask: url("/images/brand/icons/person.png") center / contain no-repeat;
    mask: url("/images/brand/icons/person.png") center / contain no-repeat;
}

html body #AMloginddmenuButton::after{
    content: "Account";
    display: inline;
    border: 0;
    margin: 0;
    vertical-align: baseline;
}

html body #AMloginddmenuButton:hover,
html body #AMloginddmenuButton:focus{
    color: var(--blc-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body #AMloginddmenu{
    font-family: var(--blc-font);
    color: var(--blc-black);
    background: var(--blc-white);
    border: 1px solid var(--blc-stone);
    border-radius: 0 0 var(--blc-radius) var(--blc-radius) !important;
}

html body #AMloginddmenu .btn-danger{
    --bs-btn-color: var(--blc-black);
    --bs-btn-bg: var(--blc-white);
    --bs-btn-border-color: var(--blc-stone);
    --bs-btn-hover-color: var(--blc-black);
    --bs-btn-hover-bg: var(--blc-stone50);
    --bs-btn-hover-border-color: var(--blc-stone);
    --bs-btn-active-color: var(--blc-black);
    --bs-btn-active-bg: var(--blc-stone50);
    --bs-btn-active-border-color: var(--blc-stone);
}

html body .AMloginusericon{
    color: var(--blc-yellow);
}

/* Phone menu (below 992px the account control becomes the hamburger and plain links). The
   navbar is navbar-light, which would draw a dark toggler and dark links on the black bar. */
html body #AMnavbar .navbar-toggler{
    border-color: rgba(255, 255, 255, .35);
    padding: 6px 10px;
}

html body #AMnavbar .navbar-toggler:focus{
    box-shadow: var(--blc-ring);
}

html body #AMnavbar .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html body #AMnavbar .navbar-nav .nav-link{
    color: var(--blc-white);
    font-weight: 600;
    font-size: 14px;
}

html body #AMnavbar .navbar-nav .nav-link.disabled{
    color: var(--blc-stone);
}

/* activemanage.css hides the desktop account control below 992px (the phone menu carries the
   same links); the id selector above would otherwise bring it back. */
@media (max-width: 991px){
    html body #AMloginddmenuButton{
        display: none;
    }
}

@media (max-width: 760px){
    html body #AMnavbarContainer > .container{
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ---------- footer ---------- */

html body #AMfooter{
    max-width: none;
    width: 100%;
    margin-top: 0 !important;
    padding: 0;
    border-top: 1px solid var(--blc-stone50);
}

html body #AMfooter footer{
    display: block;
}

html body #AMfooter footer p{
    margin: 0;
    padding: 22px 16px;
    text-align: center;
    font-size: 13px !important;
    color: var(--blc-ink2);
}

/* ---------- buttons (p.35) ----------
   Primary: BLC Yellow pill, BLC Black text; hover swaps to BLC Black with Yellow text.
   Secondary: White pill, Stone outline; hover Stone 50%. Icons take the text colour. */

html body .btn{
    font-family: var(--blc-font);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    padding: 9px 18px;
    border-radius: 999px;
    border-width: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

html body .btn.w-100{
    white-space: normal;
}

html body .btn-lg{
    font-size: 15px;
    padding: 12px 24px;
}

html body .btn-sm{
    font-size: 13px;
    padding: 7px 14px;
}

html body .btn-primary,
html body .btn-success,
html body .btn-info{
    --bs-btn-color: var(--blc-black);
    --bs-btn-bg: var(--blc-yellow);
    --bs-btn-border-color: var(--blc-yellow);
    --bs-btn-hover-color: var(--blc-yellow);
    --bs-btn-hover-bg: var(--blc-black);
    --bs-btn-hover-border-color: var(--blc-black);
    --bs-btn-focus-shadow-rgb: 242, 195, 0;
    --bs-btn-active-color: var(--blc-yellow);
    --bs-btn-active-bg: var(--blc-black);
    --bs-btn-active-border-color: var(--blc-black);
    --bs-btn-disabled-color: var(--blc-black);
    --bs-btn-disabled-bg: var(--blc-yellow);
    --bs-btn-disabled-border-color: var(--blc-yellow);
    color: var(--blc-black);
    background-color: var(--blc-yellow);
    border-color: var(--blc-yellow);
}

html body .btn-primary:hover,
html body .btn-success:hover,
html body .btn-info:hover,
html body .btn-primary:active,
html body .btn-success:active,
html body .btn-info:active{
    color: var(--blc-yellow);
    background-color: var(--blc-black);
    border-color: var(--blc-black);
}

html body .btn-secondary,
html body .btn-light,
html body .btn-warning,
html body .btn-outline-primary,
html body .btn-outline-secondary{
    --bs-btn-color: var(--blc-black);
    --bs-btn-bg: var(--blc-white);
    --bs-btn-border-color: var(--blc-stone);
    --bs-btn-hover-color: var(--blc-black);
    --bs-btn-hover-bg: var(--blc-stone50);
    --bs-btn-hover-border-color: var(--blc-stone);
    --bs-btn-focus-shadow-rgb: 242, 195, 0;
    --bs-btn-active-color: var(--blc-black);
    --bs-btn-active-bg: var(--blc-stone50);
    --bs-btn-active-border-color: var(--blc-stone);
    color: var(--blc-black);
    background-color: var(--blc-white);
    border: 1px solid var(--blc-stone);
}

html body .btn-secondary:hover,
html body .btn-light:hover,
html body .btn-warning:hover,
html body .btn-outline-primary:hover,
html body .btn-outline-secondary:hover{
    color: var(--blc-black);
    background-color: var(--blc-stone50);
    border-color: var(--blc-stone);
}

html body .btn:focus-visible{
    box-shadow: none;
    outline: 3px solid var(--blc-yellow);
    outline-offset: 2px;
}

/* ---------- form controls ---------- */

html body .form-control,
html body .form-select{
    font-family: var(--blc-font);
    font-size: 15px;
    color: var(--blc-black);
    background-color: var(--blc-white);
    border: 1px solid var(--blc-stone);
    border-radius: 8px;
    min-height: 46px;
    padding: 11px 14px;
    transition: border-color .15s;
}

html body textarea.form-control{
    min-height: 120px;
    resize: vertical;
}

html body .form-control:focus,
html body .form-select:focus{
    border-color: var(--blc-black);
    box-shadow: var(--blc-ring);
    outline: none;
}

html body .form-control::placeholder{
    color: var(--blc-ink2);
    opacity: .7;
}

/* Required tag: BLC Yellow with BLC Black text (yellow is never small text on light, p.14). */
html body .AMmandatoryBLOB{
    height: auto;
    background-color: var(--blc-yellow);
    color: var(--blc-black);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 0;
}

/* Hints sit under the field in secondary text. The brand icon library has no "info" icon, so the
   Font Awesome one is dropped (open question in the developer brief). */
html body small.form-text{
    display: block;
    margin: 7px 0 0 !important; /* activemanage.css: small{margin-bottom:1.5rem; margin-top:.5rem !important} */
    font-size: 13px;
    color: var(--blc-ink2) !important;
}

html body small.form-text .infoicon{
    display: none;
}

/* select2 drop-downs, drawn to match the inputs with a BLC Black chevron. */
html body .select2-container--default .select2-selection--single{
    height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid var(--blc-stone);
    border-radius: 8px;
    padding: 0 40px 0 14px;
    background-color: var(--blc-white);
}

html body .select2-container--default .select2-selection--single .select2-selection__rendered{
    padding: 0;
    line-height: 44px;
    color: var(--blc-black);
    font-family: var(--blc-font);
    font-size: 15px;
}

html body .select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 44px;
    width: 20px;
    right: 12px;
}

html body .select2-container--default .select2-selection--single .select2-selection__arrow b{
    border: 0;
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border-right: 2px solid var(--blc-black);
    border-bottom: 2px solid var(--blc-black);
    transform: rotate(45deg);
}

html body .select2-container--default.select2-container--focus .select2-selection--single,
html body .select2-container--default.select2-container--open .select2-selection--single{
    border-color: var(--blc-black);
    box-shadow: var(--blc-ring);
}

html body .select2-dropdown{
    border-color: var(--blc-stone);
    font-family: var(--blc-font);
    color: var(--blc-black);
}

html body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background-color: var(--blc-stone50);
    color: var(--blc-black);
}

html body .select2-container--default .select2-results__option--selected{
    background-color: var(--blc-stone25);
}

/* Pill questions (e.g. Formulation Development Assistance): Stone outline, chosen one in Yellow. */
html body .SQLpillholder{
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html body .SQLpill > ul{
    margin: 0;
}

html body .SQLpill > ul > li{
    width: 100%;
    background-color: var(--blc-white);
    border: 1px solid var(--blc-stone);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

html body .SQLpill > ul > li:hover{
    border-color: var(--blc-black);
}

html body .SQLpill > ul > li > span{
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    color: var(--blc-black);
}

html body .SQLpill > ul > li.activeG{
    background-color: var(--blc-yellow);
    border-color: var(--blc-yellow);
}

html body .SQLpill > ul > li.activeG > span{
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--blc-black) !important;
    margin-left: 0 !important;
    text-align: left;
    font-weight: 600;
}

/* File uploader: a dashed Stone drop zone with the yellow upload icon. */
html body .UL-drop{
    border: 1.5px dashed var(--blc-stone);
    border-radius: var(--blc-radius);
    background-color: var(--blc-stone25);
    padding: 22px;
    margin-bottom: 12px;
    text-transform: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--blc-black);
}

html body .UL-drop[id^="drop-"]::before{
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto 8px;
    background-color: var(--blc-yellow);
    -webkit-mask: url("/images/brand/icons/upload.png") center / contain no-repeat;
    mask: url("/images/brand/icons/upload.png") center / contain no-repeat;
}

html body .UL-drop span{
    font-size: 12px;
    font-weight: 400;
    color: var(--blc-ink2);
}

html body .UL-drop .btn{
    margin-top: 8px;
    --bs-btn-color: var(--blc-black);
    --bs-btn-bg: var(--blc-white);
    --bs-btn-border-color: var(--blc-stone);
    --bs-btn-hover-color: var(--blc-black);
    --bs-btn-hover-bg: var(--blc-stone50);
    --bs-btn-hover-border-color: var(--blc-stone);
    color: var(--blc-black);
    background-color: var(--blc-white);
    border: 1px solid var(--blc-stone);
}

html body .UL-maxsize{
    font-size: 12px;
    color: var(--blc-ink2);
}

/* ---------- platform form pages (?apage=userinputview.php) ---------- */

html body .container:has(> #pagedata.row){
    max-width: 1080px;
    padding: 36px 40px 56px;
}

html body .container > #pagedata.row{
    padding: 0;
}

/* The page title. app-custom.js moves it into a .BLCtitleRow beside the Home link. */
html body #pagedata > .col-12 > h1,
html body #pagedata > .col-12 > .BLCtitleRow > h1{
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    margin: 0 0 28px !important;
}

html body #pagedata > .col-12 > .BLCtitleRow > h1{
    margin: 0 !important;
}

html body #pagedata > .col-12 > h1::after,
html body #pagedata > .col-12 > .BLCtitleRow > h1::after{
    content: ".";
    color: var(--blc-yellow);
}

/* New Product Brief (UIV 1100, the productbriefs form). The platform draws each field as a
   label <div> followed by its .form-group, all direct children of the form, so the form is a
   two-column grid where everything spans both columns except two pairs that sit side by side
   on desktop: Servings per Unit + Ideal RRP, and Ideal Cost Price + Launch Volumes. "dense"
   lets the right-hand label back-fill the row its left-hand partner started. app-custom.js adds
   the Home link, the Cancel button and moves the MOQ note out into a full-width callout. */
html body #EDITproductbriefs-0{
    max-width: 780px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    column-gap: 22px;
}

html body #EDITproductbriefs-0 > *{
    grid-column: 1 / -1;
    min-width: 0;
}

html body #EDITproductbriefs-0 > div:has(> label[for="inputservings"]),
html body #EDITproductbriefs-0 > #AMFF_servings,
html body #EDITproductbriefs-0 > div:has(> label[for="inputidealrrp2"]),
html body #EDITproductbriefs-0 > #AMFF_idealrrp2{
    grid-column: 1;
}

html body #EDITproductbriefs-0 > div:has(> label[for="inputidealrrp"]),
html body #EDITproductbriefs-0 > #AMFF_idealrrp,
html body #EDITproductbriefs-0 > div:has(> label[for="inputlaunchvolumes"]),
html body #EDITproductbriefs-0 > #AMFF_launchvolumes{
    grid-column: 2;
}

html body #EDITproductbriefs-0 > div:not([id]):not([class]),
html body #BLCeditBrief .BLCfld > div:not([id]):not([class]){
    padding-top: 22px;
}

html body #EDITproductbriefs-0 > div:not([id]):not([class]):first-child,
html body #BLCeditBrief .BLCfld:first-child > div:not([id]):not([class]){
    padding-top: 0;
}

html body #EDITproductbriefs-0 label[for],
html body #BLCeditBrief label[for]{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

html body #EDITproductbriefs-0 .form-group,
html body #BLCeditBrief .form-group{
    margin-bottom: 0;
}

/* The linked-table open/refresh buttons beside Product Format are staff tools. */
html body #EDITproductbriefs-0 .AMddOpen,
html body #EDITproductbriefs-0 .AMddRefresh,
html body #BLCeditBrief .AMddOpen,
html body #BLCeditBrief .AMddRefresh{
    display: none !important;
}

html body #EDITproductbriefs-0 .input-group .select2-container,
html body #BLCeditBrief .input-group .select2-container{
    width: 100% !important;
}

/* The MOQ note under Launch Volumes, as a Stone 50% callout. */
html body #AMFF_launchvolumes small.form-text,
html body .BLCbriefCallout small.form-text{
    margin-top: 12px !important;
    padding: 12px 14px;
    border-radius: 8px;
    background-color: var(--blc-stone50);
    color: var(--blc-black) !important;
    font-size: 13.5px;
}

html body .BLCbriefCallout{
    padding-top: 10px;
}

html body .BLCbriefCallout small.form-text{
    margin-top: 0 !important;
}

html body #EDITproductbriefs-0 > .AMUIVsubmit{
    justify-self: start;
    float: none !important;
    margin-top: 30px !important;
}

/* The bar app-custom.js builds round Submit brief and Cancel. */
html body .BLCformbar{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--blc-stone50);
}

html body .BLCformbar .AMUIVsubmit{
    float: none !important;
    margin: 0 !important;
    font-size: 15px;
    padding: 12px 24px;
}

html body .AMUIVsubmit::before{
    content: "";
    width: 1.2em;
    height: 1.2em;
    background-color: currentColor;
    -webkit-mask: url("/images/brand/icons/check.png") center / contain no-repeat;
    mask: url("/images/brand/icons/check.png") center / contain no-repeat;
}

html body .BLCtitleRow{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

html body .BLCtitleRow > h1{
    margin: 0 !important;
}

html body .BLChomeLink{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--blc-black);
    text-decoration: none;
}

html body .BLChomeLink::before{
    content: "";
    width: 1.2em;
    height: 1.2em;
    background-color: currentColor;
    transform: scaleX(-1);
    transition: background-color .15s;
    -webkit-mask: url("/images/brand/icons/arrow.png") center / contain no-repeat;
    mask: url("/images/brand/icons/arrow.png") center / contain no-repeat;
}

html body .BLChomeLink:hover{
    color: var(--blc-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body .BLChomeLink:hover::before{
    background-color: var(--blc-yellow);
}

@media (max-width: 760px){
    html body .container:has(> #pagedata.row){
        padding: 28px 16px 48px;
    }

    html body #pagedata > .col-12 > h1,
    html body #pagedata > .col-12 > .BLCtitleRow > h1{
        font-size: 26px;
    }
}

@media (max-width: 600px){
    html body #EDITproductbriefs-0 > *{
        grid-column: 1 / -1 !important;
    }
}

/* ---------- login page (platform loginpage.php) ----------
   Two columns on desktop: a plain BLC Yellow panel with the BLC Black small-size logo and the
   brand line from "How We Sound" (p.6), and the sign-in form on White. Stacked on phones. The
   page markup is the platform's, so the panel is the .AMfullpageBG backdrop restyled, and its
   logo and headline are drawn here. The fields, buttons and flow are untouched. The headline
   breaks where the brief sets it (From product / development to / manufacturing, we / make
   growth simpler.); on a narrow phone a long line may still wrap, never inside "growth simpler." */

html body .AMfullpageBG{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    padding: 40px;
    overflow: hidden;
    background-color: var(--blc-yellow) !important;
    background-image: none !important;
}

html body .AMfullpageBG::before{
    content: "";
    display: block;
    width: 76px;
    height: 22px;
    background: url("/images/brand/BLC-logo-small-black.svg") left top / contain no-repeat;
}

html body .AMfullpageBG::after{
    content: "From product\A development\00A0to\A manufacturing, we\A make growth\00A0simpler.";
    display: block;
    white-space: pre-line;
    margin-top: clamp(28px, 6vw, 64px);
    font-family: var(--blc-font);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.12;
    color: var(--blc-black);
}

html body .AMfullpagecenter{
    width: 50%;
    min-height: 100%;
    margin-left: 50%;
}

html body #AMloginpanel{
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: clamp(28px, 6vw, 72px);
    background: var(--blc-white);
    box-shadow: none;
}

html body #AMloginpanel > div:has(> .loginLOGO){
    display: none;
}

html body #AMloginpanel > h3{
    margin: 0 0 22px;
    font-family: var(--blc-font);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.15;
    color: var(--blc-black);
    text-align: left !important;
}

html body #AMloginpanel:has(.loginform) > h3{
    font-size: 0;
}

html body #AMloginpanel:has(.loginform) > h3::before{
    content: "Sign in";
    font-size: 32px;
}

html body #AMloginpanel > h3::after{
    content: ".";
    font-size: 32px;
    color: var(--blc-yellow);
}

html body #AMloginpanel .form-group{
    margin-bottom: 18px;
}

html body #AMloginpanel label{
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 7px;
}

html body #AMloginbutton12li::after,
html body #AMloginbutton13li::after{
    content: "";
    width: 1.2em;
    height: 1.2em;
    background-color: currentColor;
    -webkit-mask: url("/images/brand/icons/arrow.png") center / contain no-repeat;
    mask: url("/images/brand/icons/arrow.png") center / contain no-repeat;
}

/* "I've Forgotten My Password" reads as a link in BLC Black SemiBold, not a button. */
html body #AMloginpanel .btn-warning{
    display: inline-block;
    width: auto !important;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--blc-black);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body #AMloginpanel .btn-warning:hover{
    background: none;
    color: var(--blc-black);
}

html body #AMloginpanel .alert-primary,
html body #AMloginpanel .alert-success,
html body #AMloginpanel .alert-warning{
    background-color: var(--blc-stone50);
    border-color: var(--blc-stone50);
    color: var(--blc-black);
    border-radius: 8px;
}

html body .AMloginloading{
    background-color: var(--blc-white);
    color: var(--blc-black);
}

@media (max-width: 760px){
    html body .AMfullpageBG{
        position: relative;
        width: 100%;
        height: auto;
        padding: 28px 16px 36px;
    }

    html body .AMfullpageBG::after{
        margin-top: 28px;
    }

    /* height and align-content are the platform's centring; block layout honours align-content
       in current browsers, which would float the form halfway down the screen. */
    html body .AMfullpagecenter{
        width: 100%;
        height: auto;
        min-height: 0;
        margin-left: 0;
        display: block !important;
        align-content: normal;
    }

    html body #AMloginpanel{
        max-width: none;
        padding: 28px 16px 40px;
    }
}

@media (prefers-reduced-motion: reduce){
    html body *{
        transition: none !important;
    }
}
