
:root{
    --navy:#171b22;
    --navy-2:#242a34;
    --navy-3:#343b47;
    --accent:#c90812;
    --accent-2:#ef4444;
    --text:#f8fafc;
    --muted:#aeb6c2;
    --panel:#11151b;
    --line:rgba(255,255,255,.12);
    --field:rgba(255,255,255,.045);
}
*{box-sizing:border-box}
html,body{width:100%;min-height:100%;margin:0}
body{
    min-height:100vh;
    overflow-x:hidden;
    background:
        radial-gradient(circle at 10% 15%,rgba(22,74,123,.24),transparent 34%),
        radial-gradient(circle at 90% 85%,rgba(47,140,255,.08),transparent 28%),
        linear-gradient(135deg,#0e1116 0%,#171b22 45%,#11151b 100%);
    color:var(--text);
    font-family:'Montserrat',Arial,sans-serif;
}
body::before{
    content:"";
    position:fixed;inset:0;pointer-events:none;
    background-image:
      linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
      linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
    background-size:34px 34px;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.7),transparent 90%);
}
.login-shell{
    min-height:calc(100vh - 46px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
}
.login-stage{
    width:min(1120px,100%);
    min-height:650px;
    display:grid;
    grid-template-columns:1.08fr .92fr;
    overflow:hidden;
    border:1px solid rgba(47,140,255,.28);
    border-radius:24px;
    background:rgba(4,10,17,.92);
    box-shadow:0 30px 90px rgba(0,0,0,.48);
    backdrop-filter:blur(10px);
}
.brand-panel{
    position:relative;
    padding:56px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
    background:
      linear-gradient(135deg,rgba(5,12,20,.96),rgba(6,18,31,.91)),
      radial-gradient(circle at 25% 30%,rgba(47,140,255,.14),transparent 36%);
}
.brand-panel::before{
    content:"";
    position:absolute;
    width:440px;height:440px;
    right:-190px;bottom:-210px;
    border:1px solid rgba(47,140,255,.2);
    border-radius:50%;
    box-shadow:0 0 0 55px rgba(47,140,255,.025),0 0 0 110px rgba(47,140,255,.018);
}
.logo-card{
    position:relative;
    z-index:1;
    width:286px;height:190px;
    overflow:hidden;
    border-radius:18px;
    display:flex;align-items:center;justify-content:center;
    padding:0;
    background:#ffffff;
    border-left:6px solid var(--accent);
    box-shadow:0 18px 50px rgba(0,0,0,.35);
    margin-bottom:42px;
}
.logo-card img{
    width:100%;height:100%;max-width:none;max-height:none;
    object-fit:cover;
    display:block;
    border-radius:12px;
}
.logo-fallback{
    color:#171b22;font-size:30px;font-weight:800;line-height:1.15;text-align:center;
}
.brand-eyebrow{
    position:relative;z-index:1;
    color:var(--accent);
    font-size:13px;font-weight:800;letter-spacing:4px;
    margin:0 0 12px;
}
.brand-title{
    position:relative;z-index:1;
    margin:0;
    max-width:550px;
    font-size:clamp(34px,4vw,52px);
    line-height:1.05;
    font-weight:800;
    letter-spacing:.5px;
}
.brand-rule{
    position:relative;z-index:1;
    width:92px;height:6px;border-radius:99px;
    background:var(--accent);
    margin:28px 0 20px;
}
.brand-subtitle{
    position:relative;z-index:1;
    font-size:16px;font-weight:800;letter-spacing:3px;
    margin-bottom:16px;
}
.brand-copy{
    position:relative;z-index:1;
    color:#b8c4d1;
    max-width:500px;
    font-family:Arial,sans-serif;
    font-size:15px;line-height:1.8;
}
.brand-trust{
    position:relative;z-index:1;
    margin-top:36px;
    color:#798a9d;
    font-size:11px;font-weight:800;letter-spacing:3px;
}
.form-panel{
    padding:58px 54px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:linear-gradient(160deg,rgba(11,17,25,.98),rgba(5,9,14,.99));
    border-left:1px solid rgba(255,255,255,.07);
}
.secure-kicker{
    display:flex;align-items:center;gap:14px;
    margin-bottom:10px;
}
.secure-icon{
    width:50px;height:50px;border-radius:14px;
    display:flex;align-items:center;justify-content:center;
    border:1px solid rgba(47,140,255,.65);
    background:rgba(47,140,255,.08);
    color:var(--accent);
    font-size:22px;
}
.secure-copy small{
    display:block;color:var(--accent);
    font-size:11px;font-weight:800;letter-spacing:2px;
    margin-bottom:4px;
}
.form-panel h1{
    margin:0;font-size:31px;line-height:1.1;font-weight:800;
}
.form-intro{
    margin:5px 0 34px 64px;
    color:#8998aa;
    font-family:Arial,sans-serif;
    font-size:14px;
}
.login-field{margin-bottom:20px}
.login-field label{
    display:block;
    margin-bottom:9px;
    font-size:12px;
    font-weight:800;
}
.input-wrap{position:relative}
.input-icon{
    position:absolute;left:16px;top:50%;transform:translateY(-50%);
    color:#788698;font-size:17px;pointer-events:none;
}
.login-field input{
    width:100%;height:51px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:9px;
    background:var(--field);
    color:#fff;
    padding:0 16px 0 48px;
    outline:none;
    font:600 14px 'Montserrat',Arial,sans-serif;
    transition:.2s ease;
}
.login-field input::placeholder{color:#687586}
.login-field input:focus{
    border-color:rgba(47,140,255,.75);
    box-shadow:0 0 0 3px rgba(47,140,255,.08);
}
.login-field input[readonly]{
    color:#c8d2de;
    background:
      repeating-linear-gradient(-45deg,rgba(255,255,255,.025),rgba(255,255,255,.025) 8px,rgba(255,255,255,.045) 8px,rgba(255,255,255,.045) 16px);
}
.login-options{
    display:flex;align-items:center;justify-content:space-between;gap:14px;
    margin:2px 0 26px;
    font-size:12px;
}
.login-options label{display:flex;align-items:center;gap:8px;color:#d5dce5;cursor:pointer}
.login-options input{accent-color:var(--accent)}
#registerLink{
    color:var(--accent-2);cursor:pointer;text-decoration:none;font-weight:700;
}
.login-btn{
    width:100%;height:52px;border:0;border-radius:9px;
    background:linear-gradient(90deg,#58b7ff,#247cff);
    color:#111923;font-weight:800;font-size:14px;letter-spacing:.5px;
    cursor:pointer;box-shadow:0 12px 30px rgba(47,140,255,.13);
    transition:transform .15s ease,filter .15s ease;
}
.login-btn:hover{filter:brightness(1.05);transform:translateY(-1px)}
.login-btn:active{transform:translateY(0)}
.security-note{
    margin-top:20px;
    display:flex;align-items:center;justify-content:center;gap:8px;
    color:#687586;font:12px Arial,sans-serif;
}
.security-note strong{color:#8b99a8;font-weight:600}
.login-footer{
    height:46px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;gap:20px;
    padding:0 22px;
    border-top:1px solid rgba(47,140,255,.18);
    background:rgba(3,9,16,.96);
    font-size:11px;font-weight:700;
    color:#8d9bad;
}
.login-footer .footer-center{color:var(--accent)}
.login-footer .footer-right{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Existing authorization/status modals */
.modal{
    display:none;position:fixed;z-index:10000;inset:0;
    align-items:center;justify-content:center;
    background:rgba(0,0,0,.72);padding:20px;
    backdrop-filter:blur(4px);
}
.modal-content{
    width:min(400px,94vw);
    padding:28px;
    border-radius:16px;
    color:#111827;
    background:#fff;
    box-shadow:0 28px 80px rgba(0,0,0,.45);
    text-align:center;
    font-family:'Montserrat',Arial,sans-serif;
}
.modal-content h3{margin:0 0 12px}
.modal-content p{white-space:normal;line-height:1.6}
.modal-content input{
    width:100%;height:46px;border:1px solid #cbd5e1;border-radius:8px;padding:0 12px;
}
.modal-buttons{display:flex;justify-content:center;gap:10px;margin-top:18px}
.btn-ok,.btn-cancel{
    border:0;border-radius:8px;padding:11px 24px;font-weight:800;cursor:pointer;
}
.btn-ok{background:#16a34a;color:#fff}
.btn-cancel{background:#dc3545;color:#fff}

@media (max-width:900px){
    .login-shell{padding:18px;align-items:flex-start}
    .login-stage{grid-template-columns:1fr;min-height:auto;margin:8px 0 58px}
    .brand-panel{padding:34px 32px}
    .logo-card{width:220px;height:130px;margin-bottom:26px}
    .brand-title{font-size:34px}
    .brand-copy,.brand-trust{display:none}
    .form-panel{padding:38px 32px;border-left:0;border-top:1px solid rgba(255,255,255,.07)}
    .form-intro{margin-left:0}
    .login-footer{position:fixed;left:0;right:0;bottom:0;z-index:100}
}
@media (max-width:560px){
    .login-shell{padding:10px 10px 54px}
    .login-stage{border-radius:15px}
    .brand-panel{padding:24px}
    .logo-card{width:180px;height:105px;margin:0 auto 22px}
    .brand-eyebrow{text-align:center;font-size:10px;letter-spacing:2px}
    .brand-title{text-align:center;font-size:27px}
    .brand-rule{margin:20px auto 15px}
    .brand-subtitle{text-align:center;font-size:12px;letter-spacing:2px}
    .form-panel{padding:30px 22px}
    .secure-kicker{justify-content:center}
    .form-panel h1{font-size:25px}
    .form-intro{text-align:center;margin:8px 0 26px}
    .login-footer{grid-template-columns:1fr;text-align:center;height:auto;min-height:42px;padding:8px 12px}
    .login-footer .footer-left,.login-footer .footer-right{display:none}
}


/* 2026-09-08: viewport-fit login — never size the page from store-name content */
html, body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
body {
    height: 100vh;
    min-height: 0;
}
.login-shell {
    height: calc(100vh - 46px);
    min-height: 0;
    padding: clamp(10px, 2.2vh, 24px);
    align-items: center;
    overflow: hidden;
}
.login-stage {
    width: min(1120px, calc(100vw - 32px));
    height: min(752px, calc(100vh - 78px));
    min-height: 0;
    max-height: calc(100vh - 58px);
}
.brand-panel,
.form-panel {
    min-width: 0;
    min-height: 0;
}
.brand-panel {
    padding: clamp(24px, 4.2vh, 48px) clamp(28px, 3.8vw, 56px);
}
.logo-card {
    width: clamp(190px, 21vw, 286px);
    height: clamp(126px, 14vw, 190px);
    margin-bottom: clamp(18px, 3vh, 34px);
    flex: 0 0 auto;
}
.brand-title {
    /* fixed viewport-based sizing; long store names wrap inside the panel
       instead of increasing page height */
    font-size: clamp(28px, min(3.45vw, 5.4vh), 52px);
    line-height: 1.03;
    max-height: 4.15em;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.brand-eyebrow { margin-bottom: clamp(7px, 1.2vh, 12px); }
.brand-rule { margin: clamp(14px, 2.4vh, 28px) 0 clamp(11px, 1.8vh, 20px); }
.brand-subtitle { margin-bottom: clamp(8px, 1.5vh, 16px); }
.brand-copy { line-height: 1.55; }
.brand-trust { margin-top: clamp(14px, 2.8vh, 32px); }
.form-panel {
    padding: clamp(24px, 4.4vh, 54px);
}
.form-intro { margin-bottom: clamp(18px, 3vh, 34px); }
.login-field { margin-bottom: clamp(12px, 2vh, 20px); }
.login-options { margin-bottom: clamp(14px, 2.5vh, 26px); }
.security-note { margin-top: clamp(12px, 2vh, 20px); }

/* Short-height desktop/windowed mode */
@media (min-width: 901px) and (max-height: 820px) {
    .login-shell { padding: 10px 18px; }
    .login-stage { height: calc(100vh - 66px); max-height: none; }
    .brand-panel { padding: 24px 44px; }
    .logo-card { width: 205px; height: 136px; margin-bottom: 18px; }
    .brand-title { font-size: clamp(27px, 4.7vh, 39px); max-height: 4.15em; }
    .brand-eyebrow { font-size: 11px; margin-bottom: 7px; }
    .brand-rule { margin: 14px 0 11px; height: 5px; }
    .brand-subtitle { font-size: 13px; margin-bottom: 9px; }
    .brand-copy { font-size: 13px; line-height: 1.45; }
    .brand-trust { margin-top: 15px; font-size: 9px; }
    .form-panel { padding: 25px 46px; }
    .secure-icon { width: 44px; height: 44px; }
    .form-panel h1 { font-size: 28px; }
    .form-intro { margin: 4px 0 18px 58px; }
    .login-field { margin-bottom: 12px; }
    .login-field label { margin-bottom: 6px; }
    .login-field input { height: 47px; }
    .login-options { margin: 0 0 14px; }
    .login-btn { height: 49px; }
    .security-note { margin-top: 11px; }
}

/* Preserve one-screen behavior on smaller displays too. */
@media (max-width: 900px) {
    html, body { overflow: hidden; }
    .login-shell { height: calc(100vh - 46px); padding: 10px; align-items: center; }
    .login-stage {
        grid-template-columns: .92fr 1.08fr;
        width: calc(100vw - 20px);
        height: calc(100vh - 66px);
        min-height: 0;
        margin: 0;
    }
    .brand-panel { display: flex; padding: 18px; }
    .logo-card { width: 150px; height: 100px; margin-bottom: 12px; }
    .brand-eyebrow { font-size: 9px; letter-spacing: 2px; }
    .brand-title { font-size: clamp(20px, 4.5vw, 30px); max-height: 4.15em; }
    .brand-subtitle { font-size: 10px; letter-spacing: 1px; }
    .brand-copy, .brand-trust { display: none; }
    .form-panel { padding: 20px; border-left: 1px solid rgba(255,255,255,.07); }
}


/* Hardware login branding + restored footer welcome marquee */
.login-footer{
    overflow:hidden;
}
.footer-right.footer-welcome-marquee{
    min-width:0;
    width:min(520px,36vw);
    display:flex;
    align-items:center;
    gap:10px;
    overflow:hidden;
}
.footer-line{
    display:block;
    flex:0 0 34px;
    width:34px;
    height:2px;
    border-radius:99px;
    background:var(--accent);
    box-shadow:0 0 10px rgba(47,140,255,.35);
}
.footer-marquee-window{
    min-width:0;
    width:100%;
    overflow:hidden;
    white-space:nowrap;
}
.footer-marquee-track{
    display:inline-block;
    min-width:max-content;
    padding-left:100%;
    white-space:nowrap;
    animation:hhposWelcomeMarquee 15s linear infinite;
    color:#9fb7cf;
    font-weight:800;
    letter-spacing:.55px;
}
@keyframes hhposWelcomeMarquee{
    from{transform:translateX(0)}
    to{transform:translateX(-100%)}
}
.footer-welcome-marquee:hover .footer-marquee-track{
    animation-play-state:paused;
}

/* Keep the footer marquee compact in windowed mode without creating page scroll. */
@media (max-width:1100px){
    .footer-right.footer-welcome-marquee{width:min(390px,34vw)}
    .footer-line{flex-basis:24px;width:24px}
}
@media (max-width:760px){
    .login-footer{grid-template-columns:auto 1fr;gap:10px;padding:0 12px}
    .login-footer .footer-center{display:none}
    .footer-right.footer-welcome-marquee{width:100%;justify-self:stretch}
    .footer-line{display:none}
}
@media (prefers-reduced-motion:reduce){
    .footer-marquee-track{
        animation:none;
        padding-left:0;
    }
}

/* Footer marquee: no decorative line; keep brand-rule under store name */
.footer-right.footer-welcome-marquee{gap:0}
.footer-line{display:none!important}

/* Font Awesome presentation icons */
.secure-icon i{font-size:22px;line-height:1}
.security-note i{font-size:11px;color:#687586}


/* Store name fullscreen/windowed fix:
   do not clip long hardware store names; scale and wrap within left panel. */
.brand-title{
    max-height:none !important;
    overflow:visible !important;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
    text-wrap:balance;
    font-size:clamp(26px, min(3.2vw, 4.8vh), 50px);
    line-height:1.03;
}

/* On taller/fullscreen displays the previous 4-line clamp could hide the last word (e.g. SUPPLIES).
   Reserve enough vertical room and reduce title size slightly for long names. */
@media (min-width:901px) and (min-height:821px){
    .brand-panel{
        justify-content:center;
        padding-top:clamp(30px,4vh,48px);
        padding-bottom:clamp(30px,4vh,48px);
    }
    .brand-title{
        font-size:clamp(30px, min(3vw, 4.6vh), 48px);
        line-height:1.02;
    }
    .logo-card{
        margin-bottom:clamp(18px,2.5vh,30px);
    }
    .brand-rule{
        margin-top:clamp(14px,2vh,22px);
        margin-bottom:clamp(10px,1.6vh,16px);
    }
    .brand-subtitle{
        font-size:clamp(12px,1.15vw,16px);
        letter-spacing:2.2px;
    }
    .brand-copy{
        font-size:clamp(12px,1vw,15px);
        line-height:1.48;
    }
}

/* Very long names: use container-query-like viewport fallback so the last line remains visible. */
@media (min-width:901px) and (max-width:1500px){
    .brand-title{
        font-size:clamp(28px,2.65vw,43px);
    }
}


/* Login brand logo: centered horizontally in the left panel */
.brand-panel .logo-card{
    align-self:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
}


/* Login left/brand panel: center all visible content */
.brand-panel{
    text-align:center !important;
    align-items:center !important;
}
.brand-panel .logo-card,
.brand-panel .brand-eyebrow,
.brand-panel .brand-title,
.brand-panel .brand-rule,
.brand-panel .brand-subtitle,
.brand-panel .brand-copy,
.brand-panel .brand-meta{
    margin-left:auto !important;
    margin-right:auto !important;
}
.brand-panel .brand-title,
.brand-panel .brand-subtitle,
.brand-panel .brand-copy,
.brand-panel .brand-meta,
.brand-panel .brand-eyebrow{
    text-align:center !important;
}


/* Brand rule exception: keep separate from centered brand content.
   Fixed 200px width for the planned marquee treatment. */
.brand-panel .brand-rule{
    width:200px !important;
    max-width:200px !important;
    margin-left:0 !important;
    margin-right:auto !important;
    align-self:flex-start !important;
}


/* Moving brand rule: 200px marquee track, direction handled by HTML marquee=right */
.brand-panel .brand-rule-marquee{
    display:block;
    width:200px !important;
    max-width:200px !important;
    height:8px;
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:hidden;
    line-height:0;
}
.brand-panel .brand-rule-marquee .brand-rule{
    width:80px !important;
    max-width:80px !important;
    height:5px;
    margin:0 !important;
    align-self:auto !important;
}


/* Brand-rule marquee stays LEFT aligned; only the other brand content is centered. */
.brand-panel .brand-rule-marquee{
    align-self:flex-start !important;
    margin-left:0 !important;
    margin-right:auto !important;
    width:200px !important;
    max-width:200px !important;
}


/* 2026-09-08 left panel spacing refinement */
.brand-panel{
    justify-content:center !important;
    gap:0 !important;
    padding-top:clamp(34px,5vh,58px) !important;
    padding-bottom:clamp(34px,5vh,58px) !important;
}

/* Give the centered content more breathing room */
.brand-panel .logo-card{
    margin-bottom:clamp(24px,3.4vh,40px) !important;
}
.brand-panel .brand-eyebrow{
    margin-bottom:clamp(12px,1.7vh,18px) !important;
}
.brand-panel .brand-title{
    margin-bottom:0 !important;
    line-height:1.08 !important;
}
.brand-panel .brand-subtitle{
    margin-top:clamp(16px,2.2vh,24px) !important;
    margin-bottom:clamp(12px,1.7vh,18px) !important;
    line-height:1.35 !important;
}
.brand-panel .brand-copy{
    line-height:1.65 !important;
    margin-bottom:0 !important;
}
.brand-panel .brand-trust{
    margin-top:clamp(24px,3vh,34px) !important;
}

/* Brand-rule marquee spans the full usable width of the left panel */
.brand-panel .brand-rule-marquee{
    align-self:stretch !important;
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    height:10px !important;
    overflow:hidden !important;
}

/* Short moving bar inside the full-width marquee */
.brand-panel .brand-rule-marquee .brand-rule{
    width:90px !important;
    max-width:90px !important;
    height:5px !important;
    margin:0 !important;
    border-radius:99px !important;
}

/* Keep comfortable spacing on shorter desktop heights */
@media (min-width:901px) and (max-height:820px){
    .brand-panel{
        padding-top:24px !important;
        padding-bottom:24px !important;
    }
    .brand-panel .logo-card{margin-bottom:18px !important;}
    .brand-panel .brand-eyebrow{margin-bottom:8px !important;}
    .brand-panel .brand-subtitle{
        margin-top:12px !important;
        margin-bottom:8px !important;
    }
    .brand-panel .brand-copy{line-height:1.45 !important;}
    .brand-panel .brand-trust{margin-top:16px !important;}
}

/* Harmony readability fix: primary login headings */
.brand-panel .brand-title,
.form-panel .secure-copy h1,
.form-panel h1 {
    color:#ffffff !important;
}
