@font-face {
    font-family: Manrope;
    src: url('../fonts/manrope.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root { color-scheme: light; --login-blue: #0878bc; --login-ink: #162d49; --login-muted: #5d6e83; }
*, *::before, *::after { box-sizing: border-box; }
body.orme-login { margin: 0; background: #f5f7fb; color: var(--login-ink); font-family: Manrope, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.orme-login button, .orme-login input, .orme-login textarea { font: inherit; }
.orme-login button { cursor: pointer; }
.orme-login a { color: inherit; text-decoration: none; }
.orme-login svg { display: block; }
.orme-login :is(a, button, summary):focus-visible { outline: 3px solid #1882cd; outline-offset: 5px; }
.orme-login [hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 20px; background: white; border-radius: 8px; z-index: 10; }
.skip-link:focus { transform: none; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); min-height: 100vh; min-height: 100svh; padding: 20px; gap: 20px; max-width: 1920px; margin: auto; }
.product-story { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 32px 48px; border: 1px solid #214e78; border-radius: 22px; background: #0d274a; color: white; overflow: hidden; }
.product-story::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 92% 59%, #17659755, transparent 58%), linear-gradient(145deg, #153b66 0%, transparent 52%); }
.product-story::after { content: ''; position: absolute; z-index: -1; width: 470px; height: 470px; border: 1px solid #88bde80d; border-radius: 50%; right: -295px; top: -200px; box-shadow: 0 0 0 60px #88bde807, 0 0 0 120px #88bde806; }
.kodmeta-brand { display: flex; align-items: center; width: fit-content; gap: 15px; }
.kodmeta-brand img { display: block; border-radius: 12px; }
.kodmeta-brand > span { font-size: 12px; color: #c4d7ec; }
.kodmeta-brand svg { width: 15px; height: 15px; stroke: #9cbddc; stroke-width: 1.5; fill: none; }
.story-content { width: 100%; max-width: 600px; margin: auto; padding: 44px 0 36px; }
.story-eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.7px; color: #b2d4f0; }
.story-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #69c2ff; box-shadow: 0 0 0 4px #69c2ff12; }
.product-story h2 { font-size: clamp(36px, 3.5vw, 58px); font-weight: 600; letter-spacing: -2px; line-height: 1.18; margin: 0; }
.product-story h2 > span { color: #80cdff; }
.story-description { color: #bbcee2; font-size: 14px; line-height: 1.8; margin: 20px 0 0; }
.technical-drawing { margin: 32px 0 25px; border: 1px solid #6aa6d631; border-radius: 12px; background: #081c362b; overflow: hidden; }
.drawing-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px 0 20px; border-bottom: 1px solid #6aa6d61a; font-size: 9px; letter-spacing: 1.4px; color: #b8d1e9; }
.drawing-header > span:first-child { display: flex; align-items: center; gap: 8px; }
.drawing-header i { height: 5px; width: 5px; background: #73c5ff; border-radius: 50%; }
.part-blueprint { width: 100%; max-height: 260px; }
.drawing-footer { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid #6aa6d61a; color: #b9d0e6; font-size: 10px; }
.drawing-cross { font-size: 17px; font-weight: 400; color: #7bc7ff; }
.drawing-toggle { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #b8d9f1; }
.drawing-toggle:hover { background: #83cfff14; border-color: #83cfff30; color: #fff; }
.orme-login .drawing-toggle:focus-visible { outline-color: #9cddff; outline-offset: 0; }
.drawing-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drawing-play-icon, .drawing-toggle[data-paused="true"] .drawing-pause-icon { display: none; }
.drawing-toggle[data-paused="true"] .drawing-play-icon { display: block; }
.nesting-blueprint { background: radial-gradient(ellipse at 50% 40%, #40769e12, transparent 70%); }
.nest-ruler { stroke: #8ab6d1; stroke-opacity: .5; stroke-width: .8; }
.nest-annotations { fill: #a2bfd5; font-size: 8px; letter-spacing: 1.2px; }
.nest-piece { fill: url(#nest-part); stroke: #a9dfff; stroke-width: 1.15; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.nest-layout:not(.nest-layout-first), .nest-caption:not(.nest-layout-first) { opacity: 0; }
.nest-cut { fill: none; stroke: #d0f4ff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 100; opacity: 0; }
.nest-laser { fill: #f1fcff; opacity: 0; filter: drop-shadow(0 0 4px #79d4ff); }
.nest-scan { opacity: 0; }
.nest-captions { display: grid; margin-left: auto; font-size: 8px; letter-spacing: 1px; text-align: right; color: #a5cbe4; }
.nest-caption { grid-area: 1 / 1; white-space: nowrap; }
/* A complete first sheet is the fallback. Motion is opt-in after the pause control is ready. */
.technical-drawing[data-enhanced] .nest-layout,
.technical-drawing[data-enhanced] .nest-caption { animation: nest-scene 24s linear infinite; animation-delay: var(--scene-delay); }
.technical-drawing[data-enhanced] .nest-piece { animation: nest-place 24s cubic-bezier(.2,.7,.2,1) infinite both; animation-delay: calc(var(--scene-delay) + var(--piece-delay)); }
.technical-drawing[data-enhanced] .nest-cut { animation: nest-cut 24s linear infinite; animation-delay: var(--scene-delay); }
.technical-drawing[data-enhanced] .nest-laser { animation: nest-laser 24s linear infinite; animation-delay: var(--scene-delay); }
.technical-drawing[data-enhanced] .nest-scan { animation: nest-scan 8s ease-in-out infinite; }
.technical-drawing[data-motion="paused"] * { animation-play-state: paused !important; }
@keyframes nest-scene { 0% { opacity: 0; } 2%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes nest-place {
    0%, 1% { opacity: 0; transform: translate(24px, -18px) rotate(-8deg) scale(.94); }
    5%, 28% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
    33%, 100% { opacity: 0; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes nest-cut { 0%, 15% { opacity: 0; stroke-dashoffset: 100; } 16% { opacity: 1; stroke-dashoffset: 100; } 25%, 28% { opacity: 1; stroke-dashoffset: 0; } 32%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes nest-laser { 0%, 15% { opacity: 0; offset-distance: 0%; } 16% { opacity: 1; offset-distance: 0%; } 25% { opacity: 1; offset-distance: 100%; } 26%, 100% { opacity: 0; offset-distance: 100%; } }
@keyframes nest-scan { 0%, 43% { opacity: 0; transform: translateX(0); } 48% { opacity: 1; transform: translateX(0); } 78% { opacity: 1; transform: translateX(456px); } 84%, 100% { opacity: 0; transform: translateX(456px); } }
.workflow { list-style: none; display: grid; grid-template-columns: 1fr 1.2fr 1.15fr; gap: 16px; margin: 0; padding: 0; }
.workflow li { display: flex; align-items: center; gap: 9px; }
.workflow li + li { border-left: 1px solid #355576; padding-left: 16px; }
.workflow span { color: #89b4da; font-size: 9px; }
.workflow strong { color: #dae9f8; font-size: 10px; font-weight: 500; }
.story-footer { border-top: 1px solid #a0caed26; padding-top: 21px; margin: 0; color: #a7bfd6; font-size: 9px; letter-spacing: .1px; }
.story-footer span { margin: 0 12px; color: #6992b9; }
.login-panel { display: flex; flex-direction: column; padding: 16px 40px 10px; min-width: 0; }
.discover-link { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #526780 !important; min-height: 44px; }
.discover-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.discover-link:hover { color: var(--login-blue) !important; }
.login-content { width: 100%; max-width: 390px; margin: auto; padding: 35px 0 36px; }
.orme-brand { display: block; width: 105px; height: auto; mix-blend-mode: multiply; margin: 0 0 30px; }
.login-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.55px; color: #5e7893; margin: 0 0 13px; }
.login-content h1 { font-size: clamp(30px, 2.6vw, 39px); letter-spacing: -1.4px; font-weight: 650; line-height: 1.2; margin: 0; }
.login-description { font-size: 12px; line-height: 1.8; color: var(--login-muted); margin: 15px 0 29px; max-width: 330px; }
.login-form { margin: 0; }
.login-field { margin-bottom: 19px; }
.login-field label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 54px; border: 1px solid #d5deeb; background: #fff; border-radius: 9px; padding: 0 15px 0 46px; color: #1b3553; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.input-wrap input::placeholder { color: #738095; font-size: 12px; }
.input-wrap input:focus { outline: none; border-color: #248aca; box-shadow: 0 0 0 3px #1882cd16; }
.input-wrap:focus-within .field-icon { stroke: #117dbc; }
.input-wrap input#password { padding-right: 50px; }
.field-icon { position: absolute; top: 17px; left: 16px; width: 19px; height: 19px; fill: none; stroke: #7a8da3; stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.password-toggle { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #667b94; }
.password-toggle:hover { background: #eef5fc; color: var(--login-blue); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.login-error { color: #a12838; background: #fff0f2; border: 1px solid #f4cdd3; border-radius: 8px; margin: 0 0 16px; padding: 12px 14px; font-size: 12px; line-height: 1.6; }
.login-error:empty { display: none; }
.login-submit { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid #0573b6; border-radius: 9px; background: var(--login-blue); color: white; font-size: 13px !important; font-weight: 650 !important; box-shadow: 0 5px 12px #0878bc19; transition: background .15s, box-shadow .15s; }
.login-submit:hover { background: #0569a6; box-shadow: 0 6px 18px #0878bc28; }
.submit-arrow { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.submit-spinner { display: none; width: 17px; height: 17px; border: 2px solid #ffffff66; border-top-color: white; border-radius: 50%; animation: login-spin .8s linear infinite; }
.login-submit:disabled { cursor: wait; background: #176b9e; }
.login-form[aria-busy="true"] .submit-arrow { display: none; }
.login-form[aria-busy="true"] .submit-spinner { display: block; }
.login-help { font-size: 11px; color: #607187; margin-top: 19px; text-align: center; }
.login-help summary { display: inline-block; cursor: pointer; list-style: none; padding: 8px 2px; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help summary:hover { color: var(--login-blue); }
.login-help p { margin: 7px 0 0; padding: 12px; border-radius: 8px; line-height: 1.7; background: #eaf0f8; }
.demo-invitation { display: flex; gap: 14px; margin-top: 28px; padding-top: 27px; border-top: 1px solid #dce3ef; }
.demo-icon { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #cbdff0; border-radius: 9px; display: grid; place-items: center; background: #eaf3fb; color: #297daf; }
.demo-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linejoin: round; }
.demo-invitation strong { font-size: 11px; font-weight: 650; }
.demo-invitation p { font-size: 10px; color: var(--login-muted); line-height: 1.7; margin: 6px 0 5px; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 9px; line-height: 1.6; color: #6b7a8f; width: 100%; max-width: 490px; margin: 0 auto; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (min-width: 1500px) { .login-shell { padding: 24px; gap: 24px; } .product-story { padding: 40px 64px; } .story-content { padding-block: 50px; } .part-blueprint { max-height: 300px; } .login-content { max-width: 420px; } }
@media (max-width: 1150px) { .product-story { padding: 28px 30px; } .login-panel { padding-inline: 24px; } .product-story h2 { font-size: 39px; letter-spacing: -1.5px; } .story-eyebrow { font-size: 8px; letter-spacing: 1.2px; } .workflow { gap: 9px; } .workflow li { gap: 6px; } .workflow li + li { padding-left: 9px; } .workflow strong { font-size: 9px; } .story-footer { font-size: 8px; } .story-footer span { margin-inline: 7px; } }
@media (max-width: 900px) {
    .login-shell { display: block; padding: 0; min-height: 100svh; }
    .product-story { display: none; }
    .login-panel { min-height: 100vh; min-height: 100svh; padding: 17px 32px 24px; }
    .login-content { max-width: 420px; padding: 22px 0 36px; }
    .login-content h1 { font-size: 36px; }
    .login-footer { max-width: 420px; }
    .orme-brand { width: 95px; margin-bottom: 29px; }
    .input-wrap input { font-size: 16px; }
}
@media (max-width: 480px) {
    .login-panel { padding: 10px 25px 22px; }
    .discover-link { font-size: 10px; }
    .login-content { padding-top: 13px; }
    .orme-brand { width: 88px; margin-bottom: 25px; }
    .login-eyebrow { font-size: 8px; letter-spacing: 1.3px; }
    .login-content h1 { font-size: 34px; }
    .login-description { margin-bottom: 25px; font-size: 11px; }
    .demo-invitation { margin-top: 24px; padding-top: 24px; gap: 12px; }
    .demo-invitation strong { font-size: 10px; }
    .demo-invitation p { font-size: 10px; }
    .login-footer { font-size: 8px; gap: 8px; }
}
@media (max-width: 350px) { .login-panel { padding-inline: 20px; } .login-content h1 { font-size: 31px; } .demo-icon { display: none; } .login-footer > span:last-child { display: none; } }
@media (min-width: 901px) and (max-height: 850px) {
    .login-shell { padding: 16px; gap: 16px; }
    .product-story { padding: 24px 38px; }
    .story-content { padding: 28px 0 24px; }
    .story-eyebrow { margin-bottom: 16px; }
    .product-story h2 { font-size: 42px; }
    .story-description { margin-top: 15px; font-size: 13px; }
    .technical-drawing { margin: 20px 0; }
    .drawing-header { padding-block: 4px; }
    .part-blueprint { max-height: 195px; }
    .drawing-footer { padding-block: 9px; }
    .login-panel { padding: 6px 32px 4px; }
    .login-content { padding: 12px 0 14px; }
    .orme-brand { width: 78px; margin-bottom: 18px; }
    .login-eyebrow { margin-bottom: 9px; }
    .login-content h1 { font-size: 31px; }
    .login-description { margin: 12px 0 23px; }
    .login-field { margin-bottom: 15px; }
    .login-field label { margin-bottom: 8px; }
    .input-wrap input, .login-submit { height: 50px; }
    .field-icon { top: 15px; }
    .password-toggle { top: 3px; }
    .login-help { margin-top: 10px; }
    .demo-invitation { margin-top: 20px; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
