/* Kryyvo login: preview/brand.css + preview/style.css from the 29 Oct 2026
   design handoff, VERBATIM except asset paths (fonts -> ../fonts, icons ->
   ../icons). Edit the design, then re-copy; do not hand-edit these two blocks.
   Frappe-specific adjustments live in the adapter block at the end. */

/* ===== preview/brand.css ===== */
@font-face{font-family:Vazirmatn;src:url('../fonts/vazirmatn-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('../fonts/vazirmatn-medium.ttf') format('truetype');font-weight:500 800;font-display:swap}
@font-face{font-family:Instrument;src:url('../fonts/instrument-serif-italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:Fira;src:url('../fonts/fira-code-medium.ttf') format('truetype');font-weight:400 700;font-display:swap}
:root{--brand-logo:#4aa8db;--brand-primary:#2177a6;--brand-ink:#103a51;--brand-yellow:#fcce19;--brand-tint:#e6f3fb;--brand-white:#fff;--brand-muted:#3d5a6c;--brand-error:#b3261e;--font-body:Vazirmatn,system-ui,sans-serif;--font-editorial:Instrument,serif;--font-label:Fira,monospace}

/* ===== preview/style.css ===== */
:root{color-scheme:light;--paper:#fbfdfe;--ink:#17364b;--muted:#627888;--line:#dae5ed;--blue:#287da8;--blue-hover:#216b91;--input:#f6f9fc;--panel-top:#d4edf8;--panel-bottom:#ecf6fb;--chip:#fafdff;--chip-border:#ffffff;--yellow:#f3d350;--focus:#76bade}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Vazirmatn,system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:5px}button:disabled{cursor:wait}button{border:0}button i{pointer-events:none}[hidden]{display:none!important}.layout{display:grid;grid-template-columns:55% 45%;min-height:100dvh;padding:16px;gap:0;max-width:1920px;margin:auto}.story{border:1px solid #c5e3f0;border-radius:24px;background:radial-gradient(ellipse at 47% 52%,#f5fbff85,transparent 57%),linear-gradient(150deg,var(--panel-top),var(--panel-bottom) 89%);position:relative;overflow:hidden;min-height:760px;padding:42px 54px 29px;display:flex;flex-direction:column}.brand{width:142px;display:block}.brand img{width:142px;height:auto;display:block;mix-blend-mode:multiply}.story-heading{margin-top:62px;position:relative;z-index:1}.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:700;color:#47758d;display:flex;gap:10px;align-items:center;margin:0 0 20px}.eyebrow span{width:17px;height:2px;background:var(--blue)}h1{font-size:clamp(34px,3.25vw,57px);line-height:1.19;letter-spacing:-2.4px;font-weight:600;margin:0}h1>span{color:#5287a3}.intro{font-size:14px;line-height:1.85;color:#53798f;margin:21px 0 0}.stage{position:relative;height:358px;min-height:300px;max-width:690px;width:100%;margin:16px auto 10px;perspective:1100px}.floor{position:absolute;inset:7% -10% -9%;transform:rotate(-13deg);pointer-events:none}.orbit{position:absolute;width:83%;height:55%;border:1px solid #83b7d44d;border-radius:50%;left:8%;top:27%;transform:rotate(-12deg)}.orbit-two{width:113%;left:-6%;height:81%;top:15%;border-color:#97c3d633;transform:rotate(-12deg)}.sculpture-wrap{position:absolute;inset:10% 0 0;display:grid;place-items:center;transform:translate3d(var(--pointer-x,0px),var(--pointer-y,0px),0);transition:transform 1.1s cubic-bezier(.22,1,.36,1);pointer-events:none}.sculpture{position:relative;width:218px;height:218px;transform-style:preserve-3d;transform:rotateX(54deg) rotateZ(-34deg);filter:drop-shadow(-5px 35px 25px #5186a124)}.slab{position:absolute;inset:0;border-radius:42px;backface-visibility:visible;box-shadow:inset 0 1px 2px #fff,2px 5px 0 #9dcbdf,4px 10px 0 #9bc4d7,6px 15px 0 #89b6cf,12px 21px 20px #497c9624;border:1px solid #f8fdffba}.slab-base{background:linear-gradient(130deg,#f7fcff,#b4d3e5);transform:translateZ(-60px);opacity:.9}.slab-middle{background:linear-gradient(130deg,#f8fdffda,#b9dfed91);transform:translateZ(-23px);box-shadow:inset 0 1px 2px #fff,3px 7px 0 #bbddebb8,6px 12px 0 #9fc4d8,12px 22px 24px #497c9624}.slab-top{background:linear-gradient(135deg,#a7d7ed,#59a9d2 65%,#358fbf);transform:translateZ(18px);box-shadow:inset 0 2px 3px #fff9,3px 5px 0 #75b7d7,6px 10px 0 #4a94b9,9px 14px 0 #3f86ab,15px 28px 30px #366b8c45;display:grid;place-items:center}.core-mark{position:relative;font-size:126px;line-height:1;font-weight:700;color:#e8f8ff;letter-spacing:-10px;transform:rotateZ(0deg);padding-right:15px;text-shadow:0 3px 0 #b4d6e7,0 8px 12px #18658c2e}.core-mark span{position:absolute;width:21px;height:21px;background:var(--yellow);border-radius:50%;right:-7px;bottom:13px;box-shadow:0 2px 0 #c3a52f}.slab-line{position:absolute;inset:10px;border:1px solid #ffffff28;border-radius:33px}.satellite{width:41px;height:41px;position:absolute;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff8ba,#f1d35f 45%,#d1af3f);right:-66px;top:5px;transform:translateZ(76px);box-shadow:4px 13px 20px #b79b3f24}.module{position:absolute;display:flex;align-items:center;gap:10px;background:var(--chip);border:1px solid var(--chip-border);padding:12px 15px;border-radius:13px;box-shadow:0 9px 24px #3d789810;text-align:left;font-weight:600;font-size:12px;transition:transform .3s,border-color .3s,box-shadow .3s;z-index:1;white-space:nowrap}.module small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:4px}.module-icon{background:#eaf5fb;color:#3a8bb6;width:32px;height:32px;display:grid;place-items:center;border-radius:9px}.module.selected{border-color:#8fc0d9;box-shadow:0 12px 25px #3d78981d}.module:hover{transform:translateY(-4px);border-color:#80bad8}.orders{left:3%;top:15%}.inventory{right:-2%;bottom:20%}.people{left:5%;bottom:13%;padding:10px 14px}.accounting{right:1%;top:12%;padding:10px 14px}.module-dot{width:6px;height:6px;border-radius:50%;background:#70b7d3;margin-left:7px}.story-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:10px;gap:12px}.module-caption{display:flex;gap:14px;align-items:center}.caption-line{height:29px;width:2px;flex-shrink:0;background:#84b8d2}.module-caption p{font-size:10px;line-height:1.9;color:#668598;margin:0}.module-caption strong{font-weight:500;color:#3d6680}.motion-control,.theme-toggle{background:transparent;display:grid;place-items:center;width:34px;height:34px;border:1px solid #b2d2e0;border-radius:50%;flex-shrink:0}.pause-bars{width:9px;height:10px;border-left:2px solid #5c8399;border-right:2px solid #5c8399}.paused .pause-bars{border:0;border-left:8px solid #5c8399;border-top:5px solid transparent;border-bottom:5px solid transparent;height:0}.story-footer{font-size:9px;color:#668598;margin:35px 0 0}.sign-in{padding:35px 42px 18px;display:flex;flex-direction:column;min-width:0}.form-nav{display:flex;align-items:center;justify-content:flex-end;gap:24px;font-size:11px;color:var(--muted);height:34px}.form-nav .text-link{margin-left:5px;font-size:11px}.text-link{border:0;background:transparent;padding:0;color:var(--blue);font-size:11px;font-weight:600;text-decoration:none}.text-link:hover{text-decoration:underline;text-underline-offset:4px}.theme-toggle{border-color:var(--line);width:32px;height:32px}.form-content{width:100%;max-width:370px;margin:auto; padding:62px 0}.welcome-mark{width:48px;height:48px;position:relative;margin-bottom:30px;display:grid;place-items:center;background:#eef6fb;border:1px solid #dcecf6;border-radius:14px}.mini-tile{width:21px;height:23px;background:linear-gradient(135deg,#8dc9e7,#3d95bf);border:1px solid #76b5d3;border-radius:6px;transform:rotate(-15deg);box-shadow:2px 3px 0 #c6e1ed}.mini-dot{height:8px;width:8px;background:var(--yellow);border-radius:50%;position:absolute;right:8px;bottom:10px}.workspace-label{font-size:9px;font-weight:700;letter-spacing:1.8px;color:var(--muted);margin:0 0 14px}h2{font-size:33px;line-height:1.2;font-weight:600;letter-spacing:-1.2px;margin:0 0 12px}.form-heading>p:last-child{font-size:12px;color:var(--muted);margin:0;line-height:1.7}.form-heading{margin-bottom:32px}.field{margin-bottom:20px}label{font-size:11px;font-weight:600;display:block;margin-bottom:9px}.label-row{display:flex;align-items:baseline;justify-content:space-between}.input-wrap{display:flex;align-items:center;gap:12px;background:var(--input);border:1px solid var(--line);border-radius:10px;min-height:51px;padding:0 15px;transition:border-color .2s,box-shadow .2s}.input-wrap:focus-within{border-color:#57a1c7;box-shadow:0 0 0 3px #6eb9de1f;background:var(--paper)}input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px;height:49px}input::placeholder{color:#6b7e8e}input[aria-invalid=true]{color:#b54c4c}.input-wrap:has([aria-invalid=true]){border-color:#bf6262}#show-password{padding:7px 0 7px 7px;background:transparent;display:grid;place-items:center;flex-shrink:0}.icon{display:inline-block;width:18px;height:18px;background:currentColor;mask:center/contain no-repeat;flex-shrink:0}.envelope{mask-image:url('../icons/envelope.svg')}.lock{mask-image:url('../icons/lock.svg')}.eye{mask-image:url('../icons/eye.svg')}.arrow{mask-image:url('../icons/arrow.svg')}.receipt{mask-image:url('../icons/receipt.svg')}.package{mask-image:url('../icons/package.svg')}.users{mask-image:url('../icons/users.svg')}.chart{mask-image:url('../icons/chart.svg')}.moon{mask-image:url('../icons/moon.svg')}.input-wrap>.icon,#show-password{color:#728b9d}.primary{background:var(--blue);color:#fafdff;border:1px solid transparent;border-radius:10px;min-height:51px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;font-size:12px;font-weight:600;box-shadow:0 4px 7px #24749d12;transition:background .2s,transform .2s}.primary:hover{background:var(--blue-hover)}.primary:hover .arrow{transform:translateX(3px)}.primary .arrow{transition:transform .2s}.primary:active,.email-button:active{transform:translateY(1px)}.password-field{margin-bottom:24px}.alternative{display:flex;align-items:center;gap:13px;margin:25px 0 20px}.alternative span{height:1px;background:var(--line);flex:1}.alternative p{font-size:10px;white-space:nowrap;margin:0;color:var(--muted)}.email-button{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:49px;background:transparent;border:1px solid var(--line);border-radius:10px;font-size:11px;font-weight:500;transition:background .2s,border-color .2s}.email-button:hover{background:var(--input);border-color:#a3c4d7}.email-button .icon{color:var(--blue);width:17px;height:17px}.secure-note{font-size:9px;color:var(--muted);display:flex;gap:6px;align-items:center;justify-content:center;margin:26px 0 0}.secure-note .icon{width:12px;height:12px}.form-footer{font-size:9px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.concept-label{color:var(--muted)}.error{font-size:10px;color:#b34444;display:block;line-height:1.5;margin-top:6px}.error:empty{display:none}.form-message{font-size:11px;line-height:1.8;color:var(--blue);border:1px solid var(--line);padding:12px;border-radius:8px;background:var(--input)}.form-message:empty{display:none}.back-button{display:block;margin:25px auto 0}dialog{border:1px solid var(--line);border-radius:20px;padding:38px;max-width:440px;width:calc(100% - 40px);background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #15394e2a}dialog::backdrop{background:#17364b44;backdrop-filter:blur(6px)}dialog p{font-size:12px;color:var(--muted);line-height:1.9}dialog .workspace-label{font-size:9px}.dialog-note{padding-top:14px;border-top:1px solid var(--line)}dialog .primary{margin-top:24px}.close-dialog{position:absolute;right:18px;top:12px;font-size:24px;background:transparent;color:var(--muted)}
@media(prefers-reduced-motion:no-preference){.enter{animation:reveal .9s cubic-bezier(.22,1,.36,1) both}.story-heading{animation-delay:.08s}.stage{animation-delay:.2s}.form-content{animation-delay:.15s}.story-bottom{animation-delay:.35s}.sculpture{animation:breathe 7s ease-in-out infinite}.paused .sculpture{animation-play-state:paused}@keyframes reveal{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes breathe{0%,100%{transform:rotateX(54deg) rotateZ(-34deg) translateZ(0)}50%{transform:rotateX(51deg) rotateZ(-31deg) translateZ(12px)}}}
[data-theme=dark]{color-scheme:dark;--paper:#12232e;--ink:#e0edf5;--muted:#9bb2c2;--line:#344c5d;--blue:#70b7dc;--blue-hover:#92c9e6;--input:#192f3e;--panel-top:#204b63;--panel-bottom:#18394d;--chip:#224b62;--chip-border:#426b81;--focus:#87c6e7}[data-theme=dark] .story{border-color:#31576d}[data-theme=dark] .brand{background:#ecf7fd;border-radius:10px;padding:7px 10px;width:152px}[data-theme=dark] .brand img{width:132px}[data-theme=dark] .eyebrow,[data-theme=dark] .intro,[data-theme=dark] .module-caption strong,[data-theme=dark] .story-footer,[data-theme=dark] .module-caption p{color:#abcbdc}[data-theme=dark] h1>span{color:#96c7e0}[data-theme=dark] .module-icon{background:#315e76;color:#b4e1f7}[data-theme=dark] .primary{color:#102d40}[data-theme=dark] .welcome-mark{background:#234658;border-color:#3c6278}[data-theme=dark] input::placeholder{color:#9bb2c2}[data-theme=dark] .input-wrap>.icon,[data-theme=dark] #show-password{color:#9bb2c2}
@media(min-width:1600px){.story{padding:48px 70px 32px}.story-heading{margin-top:75px}.stage{height:420px;margin-top:24px}.sculpture{width:250px;height:250px}.core-mark{font-size:148px}.sign-in{padding:43px 56px 25px}.form-content{max-width:400px}.form-heading{margin-bottom:36px}.input-wrap,.primary{min-height:55px}input{height:53px}.email-button{min-height:53px}.story-footer{margin-top:35px}.form-content h2{font-size:37px}}
@media(max-width:1190px){.story{padding:34px 34px 24px}.sign-in{padding:28px 30px 16px}.story-heading{margin-top:58px}h1{letter-spacing:-1.8px;font-size:37px}.stage{height:330px}.module small{display:none}.orders{left:0;top:14%}.inventory{right:-2%;bottom:15%}.people{left:0;bottom:7%}.accounting{right:0;top:5%}.module{font-size:11px;padding:10px}.sculpture{width:190px;height:190px}.core-mark{font-size:115px}.form-content{max-width:340px}.form-nav{gap:12px}}
@media(max-width:900px){.layout{grid-template-columns:47% 53%;padding:10px}.story{padding:28px 25px 24px}.story-heading{margin-top:70px}h1{font-size:30px;letter-spacing:-1.3px}.intro{font-size:12px}.stage{height:310px}.module-icon{width:27px;height:27px}.module{gap:7px;font-size:10px}.accounting{top:3%;right:-9px}.orders{top:18%;left:-5px}.people{bottom:3%;left:-8px}.inventory{bottom:18%;right:-8px}.sculpture{width:158px;height:158px}.core-mark{font-size:94px}.slab{border-radius:28px}.slab-line{border-radius:21px}.module-caption p{font-size:9px}.story-footer{font-size:8px}.sign-in{padding:26px}.form-content{padding:48px 0}.form-nav{font-size:10px}}
@media(max-width:680px){.layout{display:block;padding:0;min-height:100dvh}.story{min-height:0;border:0;border-bottom:1px solid #d0e7f3;border-radius:0;padding:29px 27px 24px}.brand,.brand img{width:119px}.story-heading{margin-top:25px}.eyebrow{font-size:8px;letter-spacing:1.7px;margin-bottom:12px}h1{font-size:31px;letter-spacing:-1.3px;line-height:1.24}.intro,.stage,.story-bottom,.story-footer{display:none}.sign-in{padding:0 27px 22px}.form-nav{position:absolute;top:26px;right:25px}.form-nav>span{display:none}.theme-toggle{border-color:#b4d4e5}.form-content{max-width:410px;padding:34px 0 39px}.welcome-mark,.workspace-label{display:none}.form-heading{margin-bottom:26px}h2{font-size:27px}.form-heading>p:last-child{font-size:12px}.field{margin-bottom:20px}.secure-note{margin-top:22px}.form-footer{max-width:410px;width:100%;margin:auto;font-size:8px}.input-wrap,.primary{min-height:52px}input{height:50px}.form-content .alternative{margin:23px 0 18px}.story .eyebrow{display:flex}dialog .workspace-label{display:block}}

:root{--paper:#fff;--ink:#103a51;--muted:#3d5a6c;--blue:#2177a6;--blue-hover:#103a51;--input:#f7fbfe;--panel-top:#d6edf9;--panel-bottom:#e6f3fb;--chip:#fff;--yellow:#fcce19;--logo-blue:#4aa8db;--brand:#2177a6;--tint:#e6f3fb}body{font-family:Vazirmatn,system-ui,sans-serif}.eyebrow,.workspace-label{font-family:Fira,monospace;font-weight:500;letter-spacing:1.4px}.eyebrow{color:#3d5a6c}.brand img{width:142px;height:44px;object-fit:contain;mix-blend-mode:normal}.logo-dark{display:none!important}[data-theme=dark] .logo-dark{display:block!important}[data-theme=dark] .logo-light{display:none!important}[data-theme=dark] .brand{background:transparent;padding:0;width:142px;border-radius:0}[data-theme=dark] .brand img{width:142px}.story-heading h1{font-weight:500;line-height:1.16;letter-spacing:-1.7px}.story-heading h1>span{display:inline-block;font-family:Instrument,serif;font-style:italic;font-weight:400;letter-spacing:-.6px;line-height:1.16;color:var(--brand);padding-bottom:5px}.intro{color:#3d5a6c;font-size:15px}.core-mark{width:81px;height:110px;object-fit:contain;padding:0;letter-spacing:0;transform:none;filter:drop-shadow(0 2px 1px #b58b1755)}.slab-top{background:linear-gradient(135deg,#75c0e9,var(--logo-blue) 40%,#2177a6)}.satellite{background:radial-gradient(circle at 30% 25%,#fff4bb,#fcce19 55%,#dfad11)}.welcome-mark{background:transparent;border:0;overflow:hidden;border-radius:12px}.welcome-mark img{width:100%;height:100%;object-fit:contain}h2{font-size:36px;font-weight:500}.form-heading>p:last-child{font-size:14px}label,.label-row .text-link{font-size:12px}input{font-size:14px}.primary{font-size:14px}.email-button{font-size:13px}.secure-note{font-size:11px}.alternative p{font-size:11px}.button-arrow{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--yellow);color:#103a51;flex-shrink:0}.button-arrow .icon{width:17px;height:17px}.module{font-size:13px}.module small{font-size:11px}.module-caption p{font-size:12px}.module-caption strong{color:var(--ink)}.story-footer,.form-footer{font-size:10px}.error{color:#b3261e}.sculpture{filter:none}.slab-base{transform:translateZ(-78px)}.slab-middle{transform:translateZ(-31px)}
@media(min-width:681px){.story{min-height:calc(100dvh - 32px)}.story-heading{margin-top:42px}.stage{height:clamp(220px,calc(100dvh - 620px),360px);min-height:220px}.form-content{padding:36px 0}.story-bottom{padding-top:8px}}
@media(min-width:681px) and (max-height:820px){.story{padding-top:30px;padding-bottom:24px}.story-heading{margin-top:32px}.story-heading h1{font-size:clamp(30px,3.1vw,45px)}.eyebrow{margin-bottom:15px}.intro{margin-top:16px}.stage{height:230px;min-height:210px;margin-top:8px}.story-footer{margin-top:24px}.form-content{padding:25px 0}.welcome-mark{width:41px;height:41px;margin-bottom:21px}.form-heading{margin-bottom:25px}.sign-in{padding-top:24px}.secure-note{margin-top:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.sculpture-wrap{transform:none!important}}
[data-theme=dark]{--paper:#122b3b;--ink:#e6f3fb;--muted:#abc9da;--line:#3d6076;--blue:#75bde4;--blue-hover:#a6d7ef;--input:#1a394d;--panel-top:#204b63;--panel-bottom:#14394f;--chip:#224b62;--chip-border:#426b81;--focus:#87c6e7}[data-theme=dark] .story-heading h1>span{color:#8fc9e9}[data-theme=dark] .primary{color:#103a51}[data-theme=dark] .welcome-mark{background:transparent;border:0}
@media(max-width:1190px){.module{font-size:12px}.module small{display:none}.intro{font-size:14px}.module-caption p{font-size:10px}.core-mark{width:66px;height:89px}}
@media(max-width:900px){.module{font-size:11px}.core-mark{width:57px;height:77px}.intro{font-size:13px}.module-caption p{font-size:9px}}
@media(max-width:680px){.brand,.brand img{width:119px;height:37px}.brand{height:37px}.story-heading h1{font-size:32px}.story-heading h1>span{font-size:37px;line-height:1.13}.form-content h2{font-size:30px}.form-heading>p:last-child{font-size:13px}.form-footer{font-size:9px}.secure-note{font-size:10px}[data-theme=dark] .brand,[data-theme=dark] .brand img{width:119px;height:37px}}

/* ===== frappe adapter =====
   Everything above is the design. Below: only what frappe's website bundle
   (loaded first on every website page) would otherwise override, and the
   states login.js drives. Measured against the preview at 1440x900. */

/* frappe makes <body> a flex container, which shrinks .layout's margin:auto
   to its content width; and it sets weight 420, line-height 1.5 and
   letter-spacing .02em where the design inherits browser defaults. */
body { display: block; font-weight: 400; line-height: normal; letter-spacing: normal; }
/* frappe gives <p> its own line-height; the design leaves it to the browser
   except where a class sets it. :where() keeps this at element specificity,
   so every design class rule still wins. */
:where(.layout, dialog) p { line-height: normal; }
/* frappe's .icon (its own sprite icons) adds margin: 0 auto, which pushes the
   design's mask icons away from their labels */
:where(.layout, dialog) .icon { margin: 0; font-size: inherit; }
/* frappe colours every heading #171717; the design's inherit the ink colour */
.layout h1, .layout h2, dialog h2 { color: inherit; }

/* "ERP" beside the logo: the product this sign-in opens (the design shows the
   logo alone) */
.layout .brand { display: flex; align-items: center; gap: 12px; width: auto; height: auto; }
/* the headline's second line in the body font, upright: the design's serif
   italic (ERP changes, 31 Oct) */
.layout .story-heading h1 > span { font-family: var(--font-body); font-style: normal; font-weight: 500; letter-spacing: -1.7px; }
.layout .brand-product {
	font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 1.4px; line-height: 1;
	color: var(--brand); background: #ffffffb3; border: 1px solid #b9dcef; border-radius: 7px; padding: 6px 8px 5px;
}
[data-theme=dark] .layout .brand-product { color: #96c7e0; background: transparent; border-color: #426b81; }
@media (max-width: 680px) { .layout .brand-product { font-size: 11px; padding: 5px 7px 4px; } }

/* the email button is an <a> (frappe routes by hash); give it a <button>'s box */
.email-button { padding: 1px 6px; color: inherit; text-decoration: none; }
.email-button:hover { color: inherit; text-decoration: none; }

/* frappe's .btn-primary states (focus/active/disabled) repaint the button
   near-black; .btn-primary stays on it because login.js writes status text
   through that class. Keep the design's colours in every state. */
.layout .primary.btn-primary,
.layout .primary.btn-primary:focus,
.layout .primary.btn-primary:disabled,
.layout .primary.btn-primary:not(:disabled):not(.disabled):active {
	background-color: var(--blue); border-color: transparent; color: #fafdff; box-shadow: 0 4px 7px #24749d12;
}
.layout .primary.btn-primary:hover { background-color: var(--blue-hover); color: #fafdff; }
.layout .primary.btn-primary:disabled { opacity: .6; cursor: default; }
[data-theme=dark] .layout .primary.btn-primary,
[data-theme=dark] .layout .primary.btn-primary:focus,
[data-theme=dark] .layout .primary.btn-primary:disabled,
[data-theme=dark] .layout .primary.btn-primary:active { background-color: var(--blue) !important; color: #103a51 !important; }
[data-theme=dark] .layout .primary.btn-primary:hover { background-color: var(--blue-hover) !important; }

/* The design's .button-arrow (28px yellow circle, ink arrow), drawn after the
   label because login.js replaces the button's children with plain text. */
form .primary::after {
	content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
	background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23103a51'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") 50% 50% / 17px no-repeat;
	transition: background-position .2s;
}
form .primary:hover:not(:disabled)::after { background-position: calc(50% + 3px) 50%; }

/* Views and messages login.js shows and hides (it uses display:flex/block). */
.for-forgot, .for-login-with-email-link, .for-signup { display: none; }
.login-error-banner, .login-success-banner, .resend-link { display: none; }
.login-error-banner { color: var(--ky-error, #b3261e); background: #fdf1f0; border-color: #f3c9c6; margin: 0 0 20px; }
[data-theme=dark] .login-error-banner { background: #482d30; color: #f3aaa8; border-color: #6b3a3d; }
.login-success-banner { margin: 0 0 20px; }
.resend-link { justify-content: center; gap: 5px; font-size: 11px; color: var(--muted); margin: 14px 0 0; }
.back-row, .signup-row { text-align: center; margin: 25px 0 0; font-size: 11px; color: var(--muted); }

/* field errors: the design marks inputs with aria-invalid; login.js marks the
   .form-group as .invalid and fills .field-error */
.form-group.invalid .input-wrap { border-color: #bf6262; }
.form-group.invalid input { color: #b54c4c; }
@media (prefers-reduced-motion: no-preference) {
	.invalid-login { animation: ky-shake .45s ease-in-out; }
	@keyframes ky-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
}
