/* Honda Tuner Online V126 — custom login background from user-selected workshop image. */
body.login-v112-page {
    position: relative;
    isolation: isolate;
    --lv-green: #20e56b;
    --lv-green-2: #0cbd50;
    --lv-green-line: rgba(39, 238, 109, .55);
    --lv-cyan: #74f5cf;
    --lv-panel: rgba(3, 23, 15, .86);
    --lv-panel-2: rgba(4, 31, 20, .78);
    --lv-ink: #f3fbf6;
    min-height: 100svh;
    margin: 0;
    color: var(--lv-ink);
    background: #020c08;
    overflow-x: hidden;
}

body.login-v112-page .login-v112-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(2,8,6,.22) 0%, rgba(2,8,6,.08) 38%, rgba(2,8,6,.08) 62%, rgba(2,8,6,.22) 100%),
        linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.18)),
        url("login-v126-bg.webp?v=20260920-v126") center center / cover no-repeat;
    transform: scale(1.01);
}

body.login-v112-page .login-v112-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 44%, rgba(32,229,107,.08), transparent 34%),
        linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.12) 31%, rgba(0,0,0,.20) 50%, rgba(0,0,0,.08) 78%, rgba(0,0,0,.18)),
        linear-gradient(180deg, rgba(0,0,0,.06), transparent 24%, rgba(0,0,0,.30));
}

body.login-v112-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.login-v112-shell {
    position: relative;
    z-index: 2;
    width: min(1580px, calc(100% - 34px));
    min-height: 100svh;
    margin: 0 auto;
    padding: 18px 0 18px;
    display: flex;
    flex-direction: column;
}

.login-v112-brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 58px;
    padding: 0 8px;
    margin-bottom: 10px;
}

.login-v112-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.login-v112-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(32,229,107,.28));
}

.login-v112-brand-copy strong,
.login-v112-brand-copy small { display: block; }

.login-v112-brand-copy strong {
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1;
    letter-spacing: -.035em;
    text-shadow: 0 2px 12px rgba(0,0,0,.38);
}

.login-v112-brand-copy strong span,
.login-v112-auth h1 span { color: var(--lv-green); }

.login-v112-brand-copy small {
    margin-top: 6px;
    color: rgba(233,248,238,.75);
    font-size: .72rem;
    letter-spacing: .04em;
}

.login-v112-brand-message {
    padding-right: 128px;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.login-v112-brand-message strong,
.login-v112-brand-message span { display: block; }
.login-v112-brand-message strong { font-size: .95rem; }
.login-v112-brand-message span { margin-top: 3px; color: rgba(230,247,236,.72); font-size: .72rem; }

.login-v112-stage {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(285px, .85fr) minmax(390px, 430px) minmax(570px, 1.35fr);
    gap: clamp(20px, 2.1vw, 34px);
    align-items: center;
}

.login-v112-hero {
    align-self: stretch;
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(26px, 3.2vw, 50px) 6px 26px 8px;
    pointer-events: none;
}

.login-v112-hero-copy {
    max-width: 360px;
    text-shadow: 0 5px 20px rgba(0,0,0,.65);
}
.login-v112-hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(160,255,201,.82);
    font-size: .68rem;
    font-weight: 1000;
    letter-spacing: .18em;
}
.login-v112-hero h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.45rem);
    line-height: .98;
    letter-spacing: -.04em;
}
.login-v112-hero h2 span { color: #61f59a; }
.login-v112-hero p {
    margin: 16px 0 0;
    color: rgba(235,248,240,.78);
    font-size: .86rem;
    line-height: 1.55;
}

.login-v113-showcase {
    display:none;
    position: relative;
    width: min(100%, 370px);
    margin-top: 18px;
    border: 1px solid rgba(63, 239, 120, .36);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(5, 23, 16, .84);
    box-shadow: 0 18px 48px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.035);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
}
.login-v113-showcase::before {
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.12));
    pointer-events:none;
}
.login-v113-showcase img {
    display:block;
    width:100%;
    height:auto;
}

.login-v112-hero-note {
    align-self: flex-end;
    margin: 0 4px 6px 0;
    color: rgba(229,250,237,.88);
    font-size: clamp(1rem, 1.55vw, 1.4rem);
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
    transform: rotate(-4deg);
    text-shadow: 0 5px 18px rgba(0,0,0,.65);
}
.login-v112-hero-note span { color: #62f79d; }

body.login-v112-page .login-v112-auth {
    width: 100%;
    max-width: 430px;
    justify-self: center;
    padding: clamp(24px, 2.25vw, 34px);
    border: 1px solid rgba(51,244,119,.72);
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(4,30,20,.94), rgba(2,18,12,.93));
    color: #f3fbf6;
    box-shadow: 0 28px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(39,234,106,.09), inset 0 0 55px rgba(28,229,96,.045);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.login-v112-auth-head { margin-bottom: 18px; text-align: center; }
.login-v112-eyebrow {
    color: var(--lv-green);
    font-size: .63rem;
    font-weight: 1000;
    letter-spacing: .19em;
}
.login-v112-auth h1 {
    margin: 6px 0 6px;
    color: #fff;
    font-size: clamp(2rem, 2.7vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.login-v112-auth-head p { margin: 0; color: rgba(228,244,234,.70); font-size: .80rem; }

body.login-v112-page .login-v112-form { gap: 12px; }
body.login-v112-page .login-v112-form label > span:first-child {
    color: #f5fff8;
    font-size: .76rem;
    font-weight: 900;
}
.login-v112-field { position: relative; display: block; }
.login-v112-field > svg {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: rgba(232,247,237,.75);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
body.login-v112-page .login-v112-field input {
    width: 100%;
    min-height: 49px;
    padding: 0 14px 0 45px;
    border: 1px solid rgba(211,235,219,.22);
    border-radius: 13px;
    background: rgba(18,37,28,.84);
    color: #fff;
    font-size: .87rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
body.login-v112-page .login-v112-field input::placeholder { color: rgba(220,236,225,.42); }
body.login-v112-page .login-v112-field input:focus {
    outline: none;
    border-color: rgba(44,244,113,.82);
    box-shadow: 0 0 0 3px rgba(35,228,104,.12);
}

body.login-v112-page .login-v112-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
}
body.login-v112-page .login-v112-actions > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(113,255,161,.55);
    border-radius: 13px;
    background: linear-gradient(135deg, #0fca54, #25e572);
    color: #03130a;
    font-size: .92rem;
    font-weight: 1000;
    box-shadow: 0 12px 28px rgba(11,205,79,.22), inset 0 1px 0 rgba(255,255,255,.34);
}
.login-v112-or {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(226,241,231,.58);
    font-size: .71rem;
    font-weight: 800;
}
.login-v112-or::before,
.login-v112-or::after { content:""; height:1px; flex:1; background: rgba(221,239,227,.17); }
body.login-v112-page .login-v112-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 13px;
    font-size: .90rem;
    font-weight: 900;
    box-sizing: border-box;
}
.login-v112-google-mark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #4285f4;
    background: #fff;
    font-family: Arial,sans-serif;
    font-size: .96rem;
    font-weight: 1000;
}
.login-v112-trial {
    margin: 13px 0 10px;
    text-align: center;
    color: rgba(235,248,240,.84);
    font-size: .72rem;
    line-height: 1.42;
}
.login-v112-trial span { color: var(--lv-green); font-weight: 900; }
.login-v112-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 9px;
    padding: 9px 10px;
    border: 1px solid rgba(81,245,137,.21);
    border-radius: 11px;
    background: rgba(4,25,16,.48);
    color: rgba(224,243,231,.72);
    font-size: .57rem;
    font-weight: 800;
}

.login-v112-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
}
.login-v112-feature {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 12px;
    align-items: center;
    gap: 9px;
    min-height: 88px;
    padding: 12px 11px;
    border: 1px solid rgba(47,236,112,.42);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(4,31,21,.90), rgba(2,18,12,.86));
    box-shadow: 0 13px 34px rgba(0,0,0,.25), inset 0 0 24px rgba(22,224,91,.025);
    backdrop-filter: blur(13px) saturate(112%);
    -webkit-backdrop-filter: blur(13px) saturate(112%);
    overflow: hidden;
}
.login-v112-feature::after {
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity:.16;
}
.login-v112-feature-icon {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border-radius:11px;
    color: var(--icon, #73f4cd);
    background: color-mix(in srgb, var(--icon, #73f4cd) 9%, transparent);
}
.login-v112-feature-icon svg { width:28px; height:28px; }
.login-v112-feature-copy { min-width:0; }
.login-v112-feature-copy strong,
.login-v112-feature-copy small,
.login-v112-feature-copy em { display:block; font-style:normal; }
.login-v112-feature-copy strong { color:#fff; font-size:.82rem; line-height:1.12; }
.login-v112-feature-copy small { margin-top:2px; color:rgba(232,246,237,.73); font-size:.65rem; }
.login-v112-feature-copy em { margin-top:3px; color:rgba(210,232,219,.53); font-size:.55rem; line-height:1.25; }
.login-v112-chevron { color:rgba(128,255,181,.64); font-size:1.1rem; font-weight:400; }

.login-v112-feature--dtc { --icon:#ff4048; }
.login-v112-feature--clear { --icon:#66f1c5; }
.login-v112-feature--live { --icon:#32e887; }
.login-v112-feature--flash { --icon:#21d5a8; }
.login-v112-feature--rom { --icon:#ffbd24; }
.login-v112-feature--security { --icon:#68f1ca; }
.login-v112-feature--tuning { --icon:#b455ff; }
.login-v112-feature--autotune { --icon:#397cff; }
.login-v112-feature--library { --icon:#3fea7d; }
.login-v112-feature--smartkey { --icon:#18d9e8; }
.login-v112-feature--compare { --icon:#4ab7ff; }
.login-v112-feature--tools { --icon:#a7b7c7; }

.login-v112-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    width: min(880px, 100%);
    margin: 10px auto 0;
    padding: 9px 16px 0;
    border-top: 1px solid rgba(202,231,212,.16);
    color: rgba(231,245,236,.68);
}
.login-v112-footer > div { text-align:center; }
.login-v112-footer strong,
.login-v112-footer span { display:block; }
.login-v112-footer strong { color:#fff; font-size:.69rem; }
.login-v112-footer span { margin-top:2px; font-size:.56rem; }

/* Floating language/theme controls are stacked on login only to prevent overlap. */
body.login-v112-page .theme-toggle,
body.login-v112-page .language-toggle {
    position: fixed !important;
    left: auto !important;
    bottom: auto !important;
    min-height: 38px !important;
    padding: .5rem .78rem !important;
    border-color: rgba(212,239,221,.25) !important;
    background: rgba(2,18,11,.82) !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    z-index: 60 !important;
}
body.login-v112-page .language-toggle { top: 18px !important; right: 18px !important; }
body.login-v112-page .theme-toggle { top: 66px !important; right: 18px !important; }

/* Light mode keeps the reference-style cream login card while the showcase remains dark. */
html:not([data-theme="dark"]) body.login-v112-page .login-v112-auth {
    background: rgba(255,251,244,.965);
    border-color: rgba(72,237,128,.62);
    color:#172018;
    box-shadow: 0 26px 70px rgba(0,0,0,.34), 0 0 0 1px rgba(39,221,103,.08);
}
html:not([data-theme="dark"]) body.login-v112-page .login-v112-auth h1,
html:not([data-theme="dark"]) body.login-v112-page .login-v112-form label > span:first-child { color:#171d18; }
html:not([data-theme="dark"]) body.login-v112-page .login-v112-auth-head p,
html:not([data-theme="dark"]) body.login-v112-page .login-v112-trial { color:#5d685f; }
html:not([data-theme="dark"]) body.login-v112-page .login-v112-field input {
    background:rgba(252,250,246,.98);
    border-color:rgba(35,59,43,.20);
    color:#142018;
}
html:not([data-theme="dark"]) body.login-v112-page .login-v112-field > svg { stroke:rgba(24,43,31,.66); }
html:not([data-theme="dark"]) body.login-v112-page .login-v112-field input::placeholder { color:rgba(25,43,31,.40); }
html:not([data-theme="dark"]) body.login-v112-page .login-v112-or { color:rgba(34,52,40,.55); }
html:not([data-theme="dark"]) body.login-v112-page .login-v112-or::before,
html:not([data-theme="dark"]) body.login-v112-page .login-v112-or::after { background:rgba(32,56,40,.15); }
html:not([data-theme="dark"]) body.login-v112-page .login-v112-trust { background:rgba(221,255,232,.58); color:#4a6251; }

/* Medium desktop / small laptop: hero becomes compact and feature grid stays readable. */
@media (max-width: 1390px) {
    .login-v112-shell { width:min(1220px, calc(100% - 28px)); }
    .login-v112-stage { grid-template-columns: 260px 410px minmax(430px,1fr); gap:18px; }
    .login-v112-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .login-v112-feature { min-height:72px; padding:9px 10px; }
    .login-v112-feature-copy em { display:none; }
    .login-v112-hero { min-height:520px; }
}

/* Tablet: login first, feature grid next; decorative hero becomes a slim intro. */
@media (max-width: 1080px) {
    body.login-v112-page .login-v112-backdrop {
        background:
            linear-gradient(180deg, rgba(0,8,5,.08), rgba(0,8,5,.28)),
            url("login-v126-bg.webp?v=20260920-v126") center center / cover no-repeat;
    }
    .login-v112-shell { width:min(900px, calc(100% - 24px)); padding-top:18px; }
    .login-v112-brand-message { padding-right:0; }
    .login-v112-stage {
        grid-template-columns:1fr;
        grid-template-areas:"hero" "auth" "tools";
        gap:14px;
    }
    .login-v112-hero {
        grid-area:hero;
        min-height:132px;
        padding:8px 5px 4px;
        display:grid;
        grid-template-columns:1fr auto;
        align-items:end;
    }
    .login-v112-hero h2 { font-size:clamp(1.65rem,4vw,2.3rem); }
    .login-v112-hero p { margin-top:8px; font-size:.74rem; }
    .login-v112-hero-note { margin:0 5px 8px 20px; font-size:1rem; }
    .login-v113-showcase {
    display:none; width:min(100%, 420px); margin-top:10px; }
    body.login-v112-page .login-v112-auth { grid-area:auth; max-width:560px; }
    .login-v112-tools { grid-area:tools; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
    .login-v112-feature { grid-template-columns:1fr; justify-items:center; min-height:110px; text-align:center; padding:10px 7px; gap:5px; }
    .login-v112-feature-copy em,.login-v112-chevron { display:none; }
    .login-v112-feature-icon { width:42px;height:42px; }
    .login-v112-feature-copy strong { font-size:.76rem; }
    .login-v112-feature-copy small { font-size:.58rem; }
}

/* Phone: portrait artwork, real login first, tools in a 2-column grid. */
@media (max-width: 680px) {
    body.login-v112-page .login-v112-backdrop {
        background:
            linear-gradient(180deg, rgba(0,8,5,.08), rgba(0,8,5,.32)),
            url("login-v119-bg.webp?v=20260920-v119") 38% center / cover no-repeat;
    }
    .login-v112-shell {
        width:min(100% - 18px, 520px);
        min-height:auto;
        padding:18px 0 calc(84px + env(safe-area-inset-bottom));
    }
    .login-v112-brandbar { margin-bottom:8px; padding:0 2px; min-height:52px; }
    .login-v112-brand img { width:43px;height:43px; }
    .login-v112-brand-copy strong { font-size:1.18rem; }
    .login-v112-brand-copy small { font-size:.56rem; letter-spacing:.01em; }
    .login-v112-brand-message { display:none; }
    body.login-v112-page .theme-toggle,
    body.login-v112-page .language-toggle {
        min-height:34px !important;
        padding:.42rem .55rem !important;
        border-radius:10px !important;
    }
    body.login-v112-page .language-toggle { top: 10px !important; right: 10px !important; }
    body.login-v112-page .theme-toggle { top: 52px !important; right: 10px !important; }
    .login-v112-stage { gap:10px; }
    .login-v112-hero {
        min-height:122px;
        display:block;
        padding:12px 4px 0;
        text-align:center;
    }
    .login-v112-hero-kicker { display:none; }
    .login-v112-hero h2 { font-size:clamp(1.55rem,8vw,2.15rem); line-height:1.02; }
    .login-v112-hero h2 br:nth-of-type(1) { display:none; }
    .login-v112-hero p { margin-top:8px; font-size:.68rem; }
    .login-v112-hero-note { display:none; }
    .login-v113-showcase {
    display:none; width:min(100%, 340px); margin:10px auto 0; }
    body.login-v112-page .login-v112-auth {
        max-width:100%;
        padding:21px 16px;
        border-radius:21px;
    }
    .login-v112-auth-head { margin-bottom:15px; }
    .login-v112-auth h1 { font-size:clamp(1.8rem,9vw,2.35rem); }
    .login-v112-auth-head p { font-size:.74rem; }
    body.login-v112-page .login-v112-field input { min-height:48px; font-size:.87rem; }
    body.login-v112-page .login-v112-actions > button { min-height:49px; }
    .login-v112-tools { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .login-v112-feature {
        min-height:112px;
        grid-template-columns:1fr;
        justify-items:center;
        text-align:center;
        gap:5px;
        padding:10px 7px;
        border-radius:14px;
    }
    .login-v112-feature-icon { width:41px;height:41px; }
    .login-v112-feature-icon svg { width:28px;height:28px; }
    .login-v112-feature-copy strong { font-size:.79rem; }
    .login-v112-feature-copy small { font-size:.61rem; }
    .login-v112-feature-copy em,.login-v112-chevron { display:none; }
    .login-v112-footer { gap:3px; margin-top:13px; padding:11px 1px 0; }
    .login-v112-footer strong { font-size:.62rem; }
    .login-v112-footer span { font-size:.50rem; }
    .login-v112-trust { font-size:.55rem; }
}

@media (max-width: 390px) {
    .login-v112-shell { width:calc(100% - 14px); }
    .login-v113-showcase {
    display:none; width:min(100%, 300px); }
    body.login-v112-page .login-v112-auth { padding:19px 13px; }
    .login-v112-feature { min-height:104px; }
    .login-v112-footer span { display:none; }
}

/* Short desktop screens: reduce vertical spacing so the whole desktop composition stays visible. */
@media (min-width: 1081px) and (max-height: 820px) {
    .login-v112-shell { padding-top:10px; padding-bottom:8px; }
    .login-v112-brandbar { min-height:48px; margin-bottom:5px; }
    .login-v112-brand img { width:44px;height:44px; }
    .login-v112-stage { align-items:center; }
    .login-v112-hero { min-height:520px; padding-top:20px; }
    .login-v113-showcase {
    display:none; width:min(100%, 320px); margin-top:14px; }
    body.login-v112-page .login-v112-auth { padding:22px 26px; }
    .login-v112-auth-head { margin-bottom:13px; }
    .login-v112-auth h1 { font-size:2.15rem; }
    body.login-v112-page .login-v112-form { gap:9px; }
    body.login-v112-page .login-v112-field input { min-height:44px; }
    body.login-v112-page .login-v112-actions > button { min-height:45px; }
    body.login-v112-page .login-v112-google { min-height:43px; }
    .login-v112-trial { margin:9px 0 7px; }
    .login-v112-trust { padding:7px 9px; }
    .login-v112-feature { min-height:70px; }
    .login-v112-footer { margin-top:5px; padding-top:6px; }
}

@media (prefers-reduced-motion: reduce) {
    body.login-v112-page *, body.login-v112-page *::before, body.login-v112-page *::after {
        scroll-behavior:auto !important;
        transition:none !important;
        animation:none !important;
    }
}
