Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
style(auth): give the sign-in pages the website's brutalism light
Guido Boyke2c2c47a8891b
diff --git a/app/assets/stylesheets/auth.css b/app/assets/stylesheets/auth.cssindex c9da44f..7af0745 100644--- a/app/assets/stylesheets/auth.css+++ b/app/assets/stylesheets/auth.css@@ -8,10 +8,14 @@*//* ============================================================- Auth pages (handoff round 1, variants 3a sign-in / 3b sign-up).- Split screen: form on paper, dark context panel. Additional- tokens: field border #C9C2B2, focus ring rgba(43,75,217,.12),- panel card #1B1E24, panel chrome #22262E, panel border #2E323B.+ Sign-in pages (app/views/devise): sign in, password, confirmation, unlock and the+ invitation sign-up. Split screen: the form on the page ground, the dark context+ panel beside it. Since 05.11.2026 in the language of the public pages+ (lalabase-website, doc/design/DESIGN.md): 2px black frames, hard shadows only where+ the eye should go first, lime as the one accent.++ Everything down to the core-only appendix at the end is the website's auth.css+ (its sign-up page) word for word: keep it so, a change there is one copy here.============================================================ */.lp-auth {@@ -32,15 +36,23 @@.lp-auth-cross { margin: 0; font-size: 14px; color: var(--lp-text-3); }-.lp-auth-cross-link {- color: var(--lp-accent);- font-weight: 600;- border-bottom: 1.5px solid var(--lp-accent);- padding-bottom: 1px;- transition: color 150ms ease, border-color 150ms ease;+/* Text links of the form: ink, underlined, lime under the pointer. */+.lp-auth-cross-link,+.lp-auth-forgot,+.lp-auth-textlink {+ color: var(--lp-ink);+ font-weight: 700;+ text-decoration: underline;+ text-decoration-thickness: 2px;+ text-underline-offset: 3px;}-.lp-auth-cross-link:hover { color: var(--lp-accent-hover); border-color: var(--lp-accent-hover); }+.lp-auth-cross-link:hover,+.lp-auth-forgot:hover,+.lp-auth-textlink:hover { text-decoration-color: var(--lp-accent); }++.lp-auth-forgot { font-size: 13.5px; }+.lp-auth-textlink { font-weight: 600; }.lp-auth-main {margin: auto 0;@@ -48,68 +60,66 @@display: flex;flex-direction: column;gap: 18px;- max-width: 420px;+ max-width: 440px;width: 100%;align-self: center;}+.lp-auth-h1,+.lp-auth-panel-h2 { font-family: var(--lp-font-display); }+.lp-auth-h1 {margin: 0;font-size: var(--lp-fs-title);- line-height: 1.06;+ line-height: 1.05;letter-spacing: -0.03em;- font-weight: 800;+ font-weight: 900;}/* Keep the sign-up heading on the same shared title scale as the sign-in heading. */.lp-auth-h1--signup { font-size: var(--lp-fs-title); }-.lp-auth-sub { margin: -6px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--lp-text-3); }+.lp-auth-sub { margin: -4px 0 0; font-size: 16px; line-height: 1.55; color: var(--lp-text-2); }.lp-auth-form { display: flex; flex-direction: column; gap: 18px; }-.lp-auth-form--signup { gap: 15px; }+.lp-auth-form--signup { gap: 16px; }/* ---------- field building block ---------- */.lp-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }.lp-field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }-.lp-field-label { font-size: 14px; font-weight: 600; color: #3D4048; }-.lp-field-optional { font-size: 13px; color: var(--lp-text-4); }+.lp-field-label { font-size: 14px; font-weight: 700; color: var(--lp-ink); }+.lp-field-optional { font-family: var(--lp-font-mono); font-size: 11px; color: var(--lp-text-3); text-transform: uppercase; letter-spacing: 0.04em; }+/* A field is a framed box like every control: 2px ink, the logo's 4px corners. Focus+ adds the lime shadow of the primary button to the ink ring of lp_base.css. */.lp-input {width: 100%;background: var(--lp-white);- border: 1px solid var(--lp-border-strong);+ border: var(--lp-border);border-radius: var(--lp-r-control);- padding: 13px 14px;+ padding: 12px 14px;font: inherit;font-size: 15.5px;color: var(--lp-ink);- transition: border-color 150ms ease, box-shadow 150ms ease;+ transition: box-shadow 120ms ease;}-.lp-input::placeholder { color: #A7A296; }+.lp-input::placeholder { color: var(--lp-border-strong); }-.lp-input:focus {- outline: none;- border: 1.5px solid var(--lp-accent);- box-shadow: 0 0 0 3px rgba(43, 75, 217, 0.12);- /* keep the field height constant despite the wider border */- padding: 12.5px 13.5px;-}+.lp-input:focus { box-shadow: 4px 4px 0 var(--lp-accent); }-.lp-input--error { border: 1.5px solid #8A2A16; box-shadow: 0 0 0 3px rgba(138, 42, 22, 0.1); }-.lp-field-error { margin: 0; font-size: 13px; color: #8A2A16; }+.lp-input--compact { padding: 9px 12px; font-size: 14.5px; }-.lp-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--lp-text-4); }-.lp-hint--small { font-size: 12.5px; }+/* Errors keep their own red: it is a state the reader must not miss, not an accent. */+.lp-input--error { border-color: #8A2A16; box-shadow: 4px 4px 0 #8A2A16; }+.lp-field-error { margin: 0; font-size: 13px; font-weight: 600; color: #8A2A16; }-/* A value the visitor cannot change (the invited address on sign-up) */-.lp-field-static { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--lp-ink); overflow-wrap: anywhere; }+.lp-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--lp-text-3); }+.lp-hint--small { font-size: 12.5px; }/* Password field with inline text toggle */.lp-input-wrap { position: relative; }.lp-input--toggle { padding-right: 86px; }-.lp-input--toggle:focus { padding-right: 85.5px; }.lp-input-toggle {position: absolute;@@ -120,75 +130,92 @@border: 0;font: inherit;font-size: 13px;- color: var(--lp-text-3);+ font-weight: 700;+ color: var(--lp-ink);+ text-decoration: underline;+ text-underline-offset: 3px;cursor: pointer;padding: 4px 2px;}-.lp-input-toggle:hover { color: var(--lp-ink); }+.lp-input-toggle:hover { text-decoration-color: var(--lp-accent); }-.lp-auth-forgot { font-size: 13.5px; color: var(--lp-accent); border-bottom: 1px solid var(--lp-accent); }-.lp-auth-forgot:hover { color: var(--lp-accent-hover); }.lp-auth-forgot-short { display: none; }/* ---------- checkboxes ---------- */.lp-checkline { display: flex; align-items: flex-start; gap: 11px; }-.lp-checkline-label { font-size: 14.5px; line-height: 1.5; color: #3D4048; }+.lp-checkline-label { font-size: 14.5px; line-height: 1.5; color: var(--lp-text-2); }.lp-checkline--terms .lp-checkline-label { font-size: 13.5px; color: var(--lp-text-2); }+.lp-checkline-label--muted { font-size: 12.5px; color: var(--lp-text-3); }.lp-checkbox {- width: 19px;- height: 19px;+ width: 20px;+ height: 20px;flex: none;margin-top: 1px;- border-radius: 4px;- border: 1.5px solid var(--lp-border-strong);+ border-radius: var(--lp-r-control);+ border: var(--lp-border);accent-color: var(--lp-accent);}-.lp-auth-textlink { color: var(--lp-accent); border-bottom: 1px solid var(--lp-accent); }-.lp-auth-textlink:hover { color: var(--lp-accent-hover); }+.lp-checkbox--small { width: 18px; height: 18px; }/* ---------- strength meter ---------- */.lp-strength { display: flex; align-items: center; gap: 10px; }/* An author display beats the [hidden] UA rule -- restate it (same trap as- the former docs.css and _ladder_cells). */+ docs.css:518 and _ladder_cells). */.lp-strength[hidden] { display: none; }.lp-strength-bar { display: flex; gap: 3px; }.lp-strength-seg {width: 26px;- height: 3px;- border-radius: 2px;- background: var(--lp-line);+ height: 6px;+ border-radius: 1px;+ border: 1px solid var(--lp-ink);+ background: var(--lp-white);}.lp-strength-on { background: var(--lp-accent); }-.lp-strength-label { font-size: 12.5px; color: var(--lp-text-3); }+.lp-strength-label { font-family: var(--lp-font-mono); font-size: 11.5px; color: var(--lp-text-2); }-/* ---------- flash ---------- */+/* ---------- discount box ---------- */-.lp-auth-flash {- border-left: 2px solid var(--lp-accent);+.lp-discount { border: var(--lp-border); border-radius: var(--lp-r-card); overflow: hidden; background: var(--lp-white); }++.lp-discount-head {background: var(--lp-paper-muted);- padding: 13px 16px;- font-size: 14.5px;- line-height: 1.5;- color: var(--lp-ink);+ padding: 14px 15px;+ display: flex;+ align-items: flex-start;+ gap: 11px;+}++.lp-discount-label { display: flex; flex-direction: column; gap: 3px; cursor: pointer; }+.lp-discount-title { font-size: 14.5px; font-weight: 700; }+.lp-discount-hint { font-size: 13px; line-height: 1.5; color: var(--lp-text-2); }++.lp-discount-body {+ border-top: 2px solid var(--lp-black);+ background: var(--lp-white);+ padding: 15px;+ display: flex;+ flex-direction: column;+ gap: 11px;}-.lp-auth-flash--alert { border-left-color: var(--lp-signal); }+.lp-discount-body.hidden { display: none; }/* ---------- reassurance + legal ---------- */.lp-auth-assure {display: flex;justify-content: center;- gap: 18px;- font-size: 13px;- color: var(--lp-text-4);+ gap: 4px 18px;+ font-family: var(--lp-font-mono);+ font-size: 12px;+ color: var(--lp-text-3);flex-wrap: wrap;}@@ -196,11 +223,11 @@display: flex;gap: 18px;font-size: 12.5px;- color: var(--lp-text-4);+ color: var(--lp-text-3);flex-wrap: wrap;}-.lp-auth-legal a:hover { color: var(--lp-ink); }+.lp-auth-legal a:hover { color: var(--lp-ink); text-decoration: underline; text-underline-offset: 3px; }/* ---------- dark context panel ---------- */@@ -210,42 +237,51 @@display: flex;align-items: center;padding: 48px 56px;+ border-left: 2px solid var(--lp-black);}.lp-auth-panel-in { display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 520px; margin: 0 auto; }+/* Mono label in lime: on ink it measures 13:1, the one place besides the footer where+ lime carries text. */.lp-auth-panel-kicker {- font-family: 'JetBrains Mono', monospace;+ font-family: var(--lp-font-mono);font-size: 12px;- letter-spacing: 0.1em;+ font-weight: 700;+ letter-spacing: 0.08em;text-transform: uppercase;- color: #7A97FF;+ color: var(--lp-accent);}.lp-auth-panel-h2 {margin: 0;font-size: var(--lp-fs-section);- font-weight: 800;- line-height: 1.1;- letter-spacing: -0.028em;+ font-weight: 900;+ line-height: 1.08;+ letter-spacing: -0.03em;}-.lp-auth-win { border: 1px solid #2E323B; border-radius: var(--lp-r-frame); background: #1B1E24; overflow: hidden; }+.lp-auth-win {+ border: 2px solid var(--lp-on-dark);+ border-radius: var(--lp-r-card);+ box-shadow: 4px 4px 0 var(--lp-accent);+ overflow: hidden;+}.lp-auth-win-bar {display: flex;align-items: center;gap: 7px;- padding: 11px 14px;- background: #22262E;+ padding: 10px 14px;+ border-bottom: 2px solid var(--lp-on-dark);}-.lp-auth-win-dot { width: 8px; height: 8px; border-radius: 50%; background: #4E525C; }+.lp-auth-win-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--lp-on-dark); }.lp-auth-win-url {- font-family: 'JetBrains Mono', monospace;+ font-family: var(--lp-font-mono);font-size: 11px;- color: var(--lp-text-4);+ color: var(--lp-on-dark-2);margin-left: 8px;}@@ -255,12 +291,12 @@display: flex;align-items: center;gap: 11px;- border: 1px solid #2E323B;+ border: 1.5px solid var(--lp-text-2);border-radius: var(--lp-r-control);padding: 12px 13px;}-/* Highlight = border only, no fill (handoff token table). */+/* Highlight = border only, no fill. */.lp-auth-row--live { border-color: var(--lp-accent); }.lp-auth-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-accent); flex: none; }@@ -268,10 +304,12 @@.lp-auth-avatar {width: 22px;height: 22px;- border-radius: 50%;+ border-radius: 3px;+ border: 1px solid var(--lp-black);background: var(--lp-accent);- color: #fff;- font-size: 11px;+ color: var(--lp-ink);+ font-family: var(--lp-font-mono);+ font-size: 10px;font-weight: 700;display: flex;align-items: center;@@ -280,48 +318,47 @@}.lp-auth-row-text { flex: 1; font-size: 13.5px; }-.lp-auth-row-text--muted { color: #C7CDD6; }+.lp-auth-row-text--muted { color: var(--lp-on-dark-2); }.lp-auth-row-text--muted b { color: var(--lp-on-dark); }-.lp-auth-row-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6B7080; }+.lp-auth-row-meta { font-family: var(--lp-font-mono); font-size: 11px; color: #B9BCC2; }.lp-auth-row-meta--strong { color: var(--lp-on-dark); font-weight: 700; }-/* Onboarding steps (3b) */+/* Onboarding steps */.lp-auth-steps { display: flex; flex-direction: column; gap: 10px; }.lp-auth-step {display: flex;align-items: center;gap: 14px;- border: 1px solid #2E323B;+ border: 2px solid var(--lp-text-2);border-radius: var(--lp-r-card);padding: 15px 16px;}-.lp-auth-step-no { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #7A97FF; }+.lp-auth-step-no { font-family: var(--lp-font-mono); font-size: 12px; font-weight: 700; color: var(--lp-accent); }.lp-auth-step-title { flex: 1; font-size: 15px; font-weight: 600; }.lp-auth-step-title--normal { font-weight: 400; line-height: 1.5; }/* Status notice (registration disabled) */.lp-auth-notice {background: var(--lp-paper-muted);- border-left: 2px solid var(--lp-accent);+ border: var(--lp-border);+ border-left-width: 6px;+ border-radius: var(--lp-r-control);padding: 16px 18px;display: flex;flex-direction: column;gap: 8px;}-.lp-auth-notice-lead { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.5; }+.lp-auth-notice-lead { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.5; }.lp-auth-notice-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--lp-text-2); }-.lp-auth-step-time { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: #6B7080; }+.lp-auth-step-time { font-family: var(--lp-font-mono); font-size: 11.5px; color: #B9BCC2; }-/* Callout inside the dark panel: bordered box, one bold line, muted text.- Carries a fact the page owns, such as how long a reset link stays valid.- Was .lp-auth-offer with an accent border and a badge until the founder- discount left the core on 20.09.2026. */-.lp-auth-callout {- border: 1px solid #2E323B;+/* Discount pointer */+.lp-auth-offer {+ border: 2px solid var(--lp-accent);border-radius: var(--lp-r-card);padding: 18px 20px;display: flex;@@ -330,22 +367,36 @@align-items: flex-start;}-.lp-auth-callout-line { font-size: 15px; font-weight: 600; }-.lp-auth-callout-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--lp-on-dark-2); }-.lp-auth-callout-text b { color: var(--lp-on-dark); }+.lp-auth-offer-badge {+ font-family: var(--lp-font-mono);+ font-size: 11px;+ font-weight: 700;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ background: var(--lp-accent);+ color: var(--lp-ink);+ border: 1.5px solid var(--lp-black);+ padding: 3px 8px;+ border-radius: var(--lp-r-control);+}++.lp-auth-offer-line { font-size: 15px; font-weight: 700; }+.lp-auth-offer-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--lp-on-dark-2); }+.lp-auth-offer-text b { color: var(--lp-on-dark); }-/* Trust pills */+/* Trust labels */.lp-auth-pills { display: flex; gap: 8px; flex-wrap: wrap; }.lp-auth-pills span {- font-family: 'JetBrains Mono', monospace;+ font-family: var(--lp-font-mono);font-size: 11px;+ font-weight: 700;letter-spacing: 0.06em;text-transform: uppercase;- color: var(--lp-on-dark-2);- border: 1px solid #2E323B;- padding: 7px 11px;- border-radius: var(--lp-r-pill);+ color: var(--lp-on-dark);+ border: 1.5px solid var(--lp-text-2);+ padding: 6px 10px;+ border-radius: var(--lp-r-control);}@media (max-width: 1023px) and (min-width: 768px) {@@ -354,17 +405,17 @@@media (max-width: 767px) {.lp-auth { grid-template-columns: 1fr; }- .lp-auth-form-col { padding: 14px 18px 24px; }+ .lp-auth-form-col { padding: 14px var(--lp-gutter) 24px; }.lp-auth-main { padding: 24px 0; max-width: none; }.lp-auth-forgot-long { display: none; }.lp-auth-forgot-short { display: inline; }- .lp-auth-panel { padding: 40px 18px; }+ .lp-auth-panel { padding: 40px var(--lp-gutter); border-left: 0; border-top: 2px solid var(--lp-black); }/* Shortened panel: the third example row and the window chrome step back. */.lp-auth-win-bar { display: none; }- .lp-auth-win { border: 0; background: none; }+ .lp-auth-win { border: 0; box-shadow: none; }.lp-auth-win-body { padding: 0; }/* Two inbox rows on mobile -- the running timer stays, it is the hook. */.lp-auth-row:nth-child(2) { display: none; }@@ -373,15 +424,44 @@.lp-auth-legal { justify-content: center; }}-/* Demo mode: the published login on the sign-in page (devise/sessions/_demo_login) */-.lp-demo-login {- margin: 0;- display: grid;- grid-template-columns: max-content 1fr;- gap: 4px 14px;- font-size: 14px;+/* ============================================================+ Core only: the pieces of these pages the website's sign-up has no use for.+ ============================================================ */++/* A value the form shows but does not ask for (the invited address). */+.lp-field-static { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--lp-ink); overflow-wrap: anywhere; }++/* Flash messages above the form: a framed box with a lime bar, the error red for an+ alert. Until 05.11.2026 the alert bar was the signal orange, a second accent. */+.lp-auth-flash {+ padding: 12px 16px;+ background: var(--lp-white);+ border: var(--lp-border);+ border-left: 6px solid var(--lp-accent);+ border-radius: var(--lp-r-control);+ font-size: 14.5px;+ line-height: 1.5;+ color: var(--lp-ink);+}+.lp-auth-flash--alert { border-left-color: #8A2A16; }++/* Hints on the dark panel (link expired, no mail arrived), framed like the steps of+ the sign-up panel and flat like every card. */+.lp-auth-callout {+ border: 2px solid var(--lp-text-2);+ border-radius: var(--lp-r-card);+ padding: 18px 20px;+ display: flex;+ flex-direction: column;+ gap: 8px;+ align-items: flex-start;}+.lp-auth-callout-line { font-size: 15px; font-weight: 700; }+.lp-auth-callout-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--lp-on-dark-2); }+.lp-auth-callout-text b { color: var(--lp-on-dark); }+/* Demo mode: the published login as a small table, what to type in mono. */+.lp-demo-login { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }.lp-demo-login dt { color: var(--lp-text-3); }-.lp-demo-login dd { margin: 0; font-family: 'JetBrains Mono', monospace; overflow-wrap: anywhere; }+.lp-demo-login dd { margin: 0; font-family: var(--lp-font-mono); overflow-wrap: anywhere; }.lp-auth-notice .lp-btn { align-self: flex-start; }diff --git a/app/assets/stylesheets/lalabase-fonts.css b/app/assets/stylesheets/lalabase-fonts.cssindex 9643727..d203da0 100644--- a/app/assets/stylesheets/lalabase-fonts.css+++ b/app/assets/stylesheets/lalabase-fonts.css@@ -4,7 +4,9 @@** Fonts:* - JetBrains Mono (variable font, 100-800)- * - Archivo (variable font, 400-800) — landing "Werkstatt" display/UI face+ * - Archivo (variable font, 400-900) — display face of the public pages and+ * the sign-in pages (the files carry the full weight axis; 900 sets the headings+ * since the redesign of 05.11.2026)* Subsets: latin + latin-ext (German, DACH languages)* License: SIL Open Font License 1.1, texts next to the files* (JetBrainsMono-OFL.txt, Archivo-OFL.txt). OFL requires them to ship with the fonts.@@ -33,7 +35,7 @@@font-face {font-family: 'Archivo';font-style: normal;- font-weight: 400 800;+ font-weight: 400 900;font-display: swap;src: url('/fonts/lalabase/archivo-latin.woff2') format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;@@ -42,7 +44,7 @@@font-face {font-family: 'Archivo';font-style: normal;- font-weight: 400 800;+ font-weight: 400 900;font-display: swap;src: url('/fonts/lalabase/archivo-latin-ext.woff2') format('woff2');unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;diff --git a/app/assets/stylesheets/landing_tokens.css b/app/assets/stylesheets/landing_tokens.cssindex b2556ad..8a9806f 100644--- a/app/assets/stylesheets/landing_tokens.css+++ b/app/assets/stylesheets/landing_tokens.css@@ -1,82 +1,124 @@+/* Mirror of lalabase-website, app/assets/stylesheets/landing_tokens.css (05.11.2026): the public+ pages and these sign-in pages are one design (doc/design/DESIGN.md there), and a+ visitor steps from one into the other. Keep the two files identical; a change+ there is one copy here. *//*- * Shared visual tokens for public landing and authentication pages.+ * Shared visual tokens for the public pages and the authentication pages.+ *+ * "Brutalism light" since 05.11.2026 (doc/design/DESIGN.md): taken from the app, not+ * from a personal brand. One accent, the lime of the logo; 2px black borders; hard+ * shadows without blur, always to the bottom right; Archivo for headings, Inter for+ * text, JetBrains Mono for labels. The guide names Space Mono first and allows the+ * app's JetBrains Mono; we take the app's, so the step from the website into the app+ * carries no change of face.** Keep these declarations under .lp so they cannot affect application pages.*/.lp {- --lp-paper: #F5F2EB;- --lp-paper-muted: #EDE8DC;- --lp-line: #DCD6C8;- /* The surface that carries content such as cards, tables, and product windows. Pure- white is intentionally the only palette color that does not come from the paper- tone. It keeps a card distinct from the band beneath it.-- Before 21 August 2026, `#fff` appeared as an unnamed literal in twenty places with- no rule for when to use it. Identical cards consequently differed between the- comparison and chapter pages. */- --lp-white: #fff;- --lp-line-light: #E4DFD2;- --lp-border-strong: #C9C2B2;- --lp-ink: #14161A;- --lp-text-2: #4A4E57;- --lp-text-3: #6B6F79;- --lp-text-4: #8A8F99;- /* Signal orange for illustrations. It illustrates and marks rather than acting as- an interactive accent; see CLAUDE.md. */- --lp-signal: #E4552B;- --lp-accent: #2B4BD9;- --lp-accent-hover: #2340C2;- --lp-accent-bg: #F4F6FF;- --lp-accent-border: #C7D2F7;+ /* ---------- Palette ----------+ ONE accent. Lime never carries text (black on lime measures 15.4:1, white on lime+ 1.3:1): it fills, it underlines, it throws a shadow. Status colours exist only+ inside the schematic app window, where they are the app's own. */+ --lp-paper: #FBFAF7; /* page ground, warm off-white */+ --lp-paper-muted: #F4F4F1; /* set-off surface: app sidebar, before/after stage, "fairly first" band */+ /* The surface that carries content: cards, tables, navigation, product windows.+ Named because it is the one colour with a rule attached (spec/assets/+ landing_scales_guard_spec.rb): a card is white, the ground under it is not. */+ --lp-white: #FFFFFF;+ --lp-line: #D4D4CF; /* fine rules INSIDE cards and tables */+ --lp-line-light: #E4E4DF; /* the finest rule, rows of the schematic app window */+ --lp-border-strong: #6B6F79; /* dashed outlines: "depends on you", optional steps */+ --lp-ink: #14161A; /* text, primary buttons, dark bands, footer */+ --lp-black: #000000; /* borders and hard shadows */+ --lp-text-2: #3A3D42; /* running text */+ --lp-text-3: #5B5F66; /* labels and meta text, 6.1:1 on paper */+ --lp-accent: #BEF264; /* = the logo tile (Tailwind lime-300) */+ --lp-accent-tint: #F3FBE3; /* the Lalabase column of a comparison table */--lp-on-dark: #F5F2EB;- --lp-on-dark-2: #A7ADBA;+ --lp-on-dark-2: #C9CCD1;++ --lp-status-new: #3B82F6;+ --lp-status-wip: #F59E0B;+ --lp-status-done: #22C55E;++ /* ---------- Borders and shadows ----------+ Shadows are hard (blur 0), go to the bottom right and are black. Three exceptions:+ the primary button throws lime; on a dark ground the shadow is lime or off-white,+ because black would vanish there; and whatever SHOWS the product -- the app+ window, the mocks, the screenshots -- throws a wide grey one. Cards and windows are+ both white with a black frame, and without it a screenshot read as one more info+ box (decided with the owner on 05.11.2026, against the guide's "always black").+ WHERE a shadow stands at all is the guide's "Hervorhebungen staffeln": only where+ the eye should go first; cards and secondary buttons are flat at rest. */+ --lp-border: 2px solid var(--lp-black);+ --lp-border-fine: 1.5px solid var(--lp-line);+ --lp-shadow-s: 3px 3px 0 var(--lp-black);+ --lp-shadow-m: 4px 4px 0 var(--lp-black);+ --lp-shadow-card: 5px 5px 0 var(--lp-black);+ --lp-shadow-l: 8px 8px 0 var(--lp-black);+ --lp-shadow-primary: 4px 4px 0 var(--lp-accent);+ --lp-shadow-window: 10px 10px 0 var(--lp-line);++ /* ---------- Faces ---------- */+ --lp-font-display: 'Archivo', system-ui, sans-serif;+ --lp-font-body: 'Inter var', 'Inter', system-ui, sans-serif;+ --lp-font-mono: 'JetBrains Mono', ui-monospace, monospace;/* ---------- Heading scale ----------Five levels carry one meaning each, replacing the thirteen sizes that had- accumulated by 21 August 2026 (62/58/56/54/46/42/40/38/34/30/24/21/15).+ accumulated by 21 August 2026. The guide sets the headings fluid (clamp); the+ ladder keeps three steps instead, because a level that is defined at every+ breakpoint can be checked, and a clamp per heading is the hand-written size the+ guard exists to stop.++ The guide's 72px for the homepage h1 is the size its draft was drawn at; in the+ hero's text column "Frag dein Projekt." measures 629px at 72px against 599px of+ column. The lines are the statement, so the size gives way, not the breaks: 64px+ keeps each on one line (559px, the highlighted second line 543px).The media queries at the end of the file assign each level again. A heading tiedto a level therefore scales on mobile without its own rule. Add a sixth level onlyafter checking that none of the five existing meanings fits. */- --lp-fs-hero: 62px; /* the homepage h1 */- --lp-fs-display: 54px; /* h1 for a chapter landing page */- --lp-fs-title: 42px; /* h1 for a detail page and the largest h2 */- --lp-fs-section: 34px; /* h2 inside a band */- --lp-fs-sub: 24px; /* heading inside a card or column */+ --lp-fs-hero: 64px; /* the homepage h1 */+ --lp-fs-display: 58px; /* h1 of a landing page: comparison, features, pricing */+ --lp-fs-title: 50px; /* h1 of a detail page and the section h2 */+ --lp-fs-section: 42px; /* h2 of a comparison block, a chapter or a band in a band */+ --lp-fs-sub: 26px; /* heading inside a card head or a column *//* Card titles stay outside the responsive heading scale. A card becomes narroweron a phone, but the same card should not also become smaller. */- --lp-fs-card: 17px;+ --lp-fs-card: 21px;/* ---------- Band spacing ----------- Five levels replace the eleven vertical padding values that had accumulated for- the same purpose by 21 August 2026.-- `hero` has a separate meaning: the page header is intentionally compact on phones- so content starts above the fold. Horizontal spacing has one value on .lp-in rather- than one value per band. */- --lp-gutter: 56px;+ Sections are separated by space and by their numbered label, no longer by a+ change of ground: the bands keep one ground, and the rhythm comes from here.+ Horizontal spacing has one value on .lp-in rather than one value per band. */+ --lp-gutter: 24px;--lp-band-xs: 24px; /* bars and breadcrumbs */--lp-band-sm: 48px; /* indexes, card grids, and chapter bars */- --lp-band-md: 72px; /* standard band */- --lp-band-lg: 80px; /* closing band */- --lp-band-hero: 66px; /* page header */+ --lp-band-md: 72px; /* standard section */+ --lp-band-lg: 96px; /* closing band */+ --lp-band-hero: 80px; /* page header */- /* ---------- Rounding and card dimensions ----------- Four radii each carry one meaning. Small elements inside mock windows keep their- own values because they belong to the illustration and scale with it. */- --lp-r-control: 7px; /* input or toggle */- --lp-r-card: 8px; /* card */- --lp-r-frame: 10px; /* frame around a table, window, or menu */- --lp-r-pill: 20px; /* pill */+ /* ---------- Corners ----------+ Three radii, one meaning each. 4px is the logo tile, and every control and badge+ takes it from there. Small values inside the schematic windows keep their own,+ because they belong to the drawing and scale with it. */+ --lp-r-control: 4px; /* button, badge, input, toggle */+ --lp-r-card: 8px; /* card, table frame, window */+ --lp-r-frame: 10px; /* closing block, hero block *//* Card padding differs only between a card in a grid and a standalone panel. */- --lp-pad-card: 22px; /* card in a grid */- --lp-pad-panel: 26px; /* standalone card or prose panel */+ --lp-pad-card: 24px; /* card in a grid */+ --lp-pad-panel: 28px; /* standalone card or prose panel */background: var(--lp-paper);color: var(--lp-ink);- font-family: 'Archivo', sans-serif;+ font-family: var(--lp-font-body);+ /* Unitless, so every size computes its own. The body carries Tailwind's text-base,+ whose line-height is a fixed 1.5rem: inherited as 24px, it spread every small+ label and note to twice its height. */+ line-height: 1.5;min-height: 100vh;}@@ -84,34 +126,36 @@breakpoints from landing.css rather than new ones. */@media (max-width: 1279px) {.lp {- --lp-fs-hero: 52px;- --lp-fs-display: 46px;- --lp-fs-title: 36px;- --lp-fs-section: 30px;- --lp-fs-sub: 22px;+ --lp-fs-hero: 54px;+ --lp-fs-display: 48px;+ --lp-fs-title: 42px;+ --lp-fs-section: 36px;+ --lp-fs-sub: 24px;- --lp-gutter: 40px;+ --lp-gutter: 24px;--lp-band-xs: 22px;--lp-band-sm: 44px;- --lp-band-md: 56px;- --lp-band-lg: 64px;- --lp-band-hero: 52px;+ --lp-band-md: 64px;+ --lp-band-lg: 80px;+ --lp-band-hero: 64px;}}@media (max-width: 767px) {.lp {- --lp-fs-hero: 33px;- --lp-fs-display: 31px;- --lp-fs-title: 28px;- --lp-fs-section: 24px;- --lp-fs-sub: 20px;+ /* 36px: "Frag dein Projekt." measures 314px there, the highlighted "Nicht fünf+ Tools." 308px, and a 360px phone leaves 320px of column. */+ --lp-fs-hero: 36px;+ --lp-fs-display: 34px;+ --lp-fs-title: 30px;+ --lp-fs-section: 26px;+ --lp-fs-sub: 22px;- --lp-gutter: 18px;+ --lp-gutter: 20px;--lp-band-xs: 18px;--lp-band-sm: 36px;- --lp-band-md: 44px;+ --lp-band-md: 48px;--lp-band-lg: 56px;- --lp-band-hero: 24px;+ --lp-band-hero: 32px;}}diff --git a/app/assets/stylesheets/lp_base.css b/app/assets/stylesheets/lp_base.cssindex 5b48361..06db151 100644--- a/app/assets/stylesheets/lp_base.css+++ b/app/assets/stylesheets/lp_base.css@@ -1,3 +1,7 @@+/* Mirror of lalabase-website, app/assets/stylesheets/lp_base.css (05.11.2026): the public+ pages and these sign-in pages are one design (doc/design/DESIGN.md there), and a+ visitor steps from one into the other. Keep the two files identical; a change+ there is one copy here. *//** Shared building blocks for the public landing pages and the authentication pages.*@@ -12,69 +16,175 @@/* :where() keeps specificity at zero so component classes always win. */.lp :where(a) { color: inherit; text-decoration: none; }-/* Focus states were missing on the old page; the handoff makes them mandatory. */-.lp :is(a, button):focus-visible {- outline: 2px solid var(--lp-accent);- outline-offset: 2px;+/* Focus states were missing on the old page; the handoff makes them mandatory. Ink,+ not lime: a lime ring on white measures 1.3:1 and would be the one focus state+ nobody sees. On a dark ground the ring turns lime, where it measures 13:1. */+.lp :is(a, button, input, select, textarea, summary):focus-visible {+ outline: 2px solid var(--lp-ink);+ outline-offset: 3px;}-.lp-brand { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }+.lp :is(.lp-sec--dark, .lp-footer, .lp-auth-panel) :is(a, button):focus-visible {+ outline-color: var(--lp-accent);+}++/* The logo, exactly as on the live page before the redesign and as in the app: the+ lime tile with the L (shared/_brand_mark) and the wordmark in Archivo 800. The+ guide forbids changing it, so the face is set here and not inherited from the+ body, which turned to Inter with the redesign. */+.lp-brand {+ display: flex;+ align-items: center;+ gap: 6px;+ font-family: var(--lp-font-display);+ font-size: 21px;+ line-height: 24px;+ font-weight: 800;+ letter-spacing: -0.02em;+}++/* Hero label of a page: mono capitals in the meta tone, like the numbered section+ labels below it but without a number. The homepage sets it as a badge. */+/* The icons are <i> elements, and an <i> is italic. It holds no text, but the browser+ still fetched the italic face of Inter for it, 55 KB that set no word (measured+ 05.11.2026). Upright, the icon reuses the face the page has already loaded. */+.lp i.bi { font-style: normal; }-/* Hero eyebrow: accent-colored, with a short leading rule. */.lp-eyebrow {display: flex;align-items: center;gap: 10px;- font-family: 'JetBrains Mono', monospace;- font-size: 12px;- letter-spacing: 0.1em;+ font-family: var(--lp-font-mono);+ font-size: 13px;+ font-weight: 700;+ letter-spacing: 0.06em;text-transform: uppercase;- color: var(--lp-accent);-}--.lp-eyebrow::before {- content: "";- width: 22px;- height: 1px;- background: var(--lp-accent);+ color: var(--lp-text-3);}-/* ---------- buttons ---------- */+/* ---------- buttons ----------+ Primary: ink with a lime shadow, up and out on hover, down and flat on click; the+ shadow keeps its colour while it grows, so a primary button stays the primary one+ under the pointer. Secondary: white and flat, its black shadow shows only under the+ pointer (DESIGN.md, "Hervorhebungen staffeln"): with a shadow at rest it weighed as+ much as the primary beside it. Both are 2px framed and 44px high at least. */.lp-btn {display: inline-flex;align-items: center;justify-content: center;+ gap: 8px;+ min-height: 44px;+ padding: 12px 20px;+ font-family: var(--lp-font-body);font-size: 16px;- font-weight: 600;+ font-weight: 700;+ line-height: 1.25;+ text-align: center;+ border: var(--lp-border);border-radius: var(--lp-r-control);- transition: all 150ms ease;+ background: var(--lp-white);+ color: var(--lp-ink);+ box-shadow: 0 0 0 var(--lp-black);+ transition: transform 120ms ease, box-shadow 120ms ease;cursor: pointer;}-.lp-btn--primary {- background: var(--lp-accent);- color: #fff;- padding: 15px 26px;-}+.lp-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--lp-shadow-m); }+.lp-btn:active { transform: none; box-shadow: 0 0 0 var(--lp-black); }-.lp-btn--primary:hover {- background: var(--lp-accent-hover);- transform: translateY(-1px);+.lp-btn--primary,+.lp-btn--dark {+ background: var(--lp-ink);+ color: var(--lp-white);+ box-shadow: var(--lp-shadow-primary);}-.lp-btn--ghost {- padding: 14px 24px;- border: 1.5px solid var(--lp-border-strong);-}+.lp-btn--primary:hover,+.lp-btn--dark:hover { box-shadow: 6px 6px 0 var(--lp-accent); }+.lp-btn--primary:active,+.lp-btn--dark:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--lp-accent); }++/* The secondary button. "ghost" is the name it had when it was a hairline outline. */+.lp-btn--ghost { background: var(--lp-white); color: var(--lp-ink); }-.lp-btn--ghost:hover { border-color: var(--lp-ink); }.lp-btn--block { width: 100%; }+/* The arrow belongs to the main action of a section and nowhere else. An icon, not the+ character: "\2192" lies outside the Latin subset of every face on the page, and only+ for it (and the check marks of the price cards) the browser fetched a fourth file. */+.lp-btn-arrow { -webkit-text-stroke: 1px currentColor; }++@media (prefers-reduced-motion: reduce) {+ .lp-btn { transition: none; }+ .lp-btn:hover, .lp-btn:active { transform: none; }+}+/* Two fields side by side: sign-up names and passwords, the imprint's detail blocks. */.lp-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.lp-field-pair--tight { gap: 10px; }@media (max-width: 767px) {- .lp-eyebrow { font-size: 10.5px; }+ .lp-eyebrow { font-size: 12px; }+}++/* ---------- language switch ---------- */+/* Moved here from landing.css on 21.09.2026. The sign-up page renders the switch+ too (static/_language_switch), and its layout loads auth.css, not landing.css:+ from the W5 switch until that day lalabase.com showed an unstyled "DE / EN" in+ the middle of the sign-up top row. Guard: spec/system/signup_form_chrome_spec.rb.++ A segmented control since the redesign: one 2px frame, the current language filled+ lime. The current language is still a span, not a link (static/_language_switch),+ so it carries no hover rule; the separator the partial renders becomes the 2px+ divider between the two halves. */+.lp-nav-lang {+ display: inline-flex;+ align-items: stretch;+ border: var(--lp-border);+ border-radius: var(--lp-r-control);+ overflow: hidden;+ font-family: var(--lp-font-mono);+ font-size: 12px;+ font-weight: 700;+ letter-spacing: 0.04em;+ background: var(--lp-white);+}++.lp-nav-lang a,+.lp-nav-lang-current {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ min-width: 36px;+ min-height: 32px;+ padding: 4px 8px;+ color: var(--lp-ink);+}++.lp-nav-lang a { transition: background 120ms ease; }+.lp-nav-lang a:hover { background: var(--lp-paper-muted); }+.lp-nav-lang-current { background: var(--lp-accent); }+.lp-nav-lang-sep { width: 2px; background: var(--lp-black); color: transparent; font-size: 0; }++/* ---------- bot trap ---------- */+/* shared/_bot_trap_fields. This rule lived in the core's views.css and did not+ come along when the sign-up form moved here (W3.4): the trap was VISIBLE on+ lalabase.com until 21.09.2026. That is not cosmetic -- a password manager or+ autofill fills a visible input, and the trap answers a filled field with a+ pretended success, so a real customer is told they signed up and no account+ exists.++ Deliberately NOT display:none and not hidden: simple scripts skip exactly+ those two signals, and then nobody falls in anymore. Pushing it off-screen+ keeps the field looking normal in the DOM. Deliberately NOT under .lp either:+ a trap has to hide wherever a form renders it. */+.bot-trap {+ position: absolute;+ left: -9999px;+ top: auto;+ width: 1px;+ height: 1px;+ overflow: hidden;+ pointer-events: none;}diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erbindex f813a83..16a90c0 100644--- a/app/views/devise/confirmations/new.html.erb+++ b/app/views/devise/confirmations/new.html.erb@@ -36,7 +36,7 @@<% end %><% content_for :auth_panel do %>- <div class="lp-auth-panel-kicker">// <%= t('.panel_label') %></div>+ <div class="lp-auth-panel-kicker"><%= t('.panel_label') %></div><h2 class="lp-auth-panel-h2"><%= t('.panel_title') %></h2><div class="lp-auth-callout">diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erbindex e45a530..cb75267 100644--- a/app/views/devise/passwords/edit.html.erb+++ b/app/views/devise/passwords/edit.html.erb@@ -36,7 +36,7 @@<% end %><% content_for :auth_panel do %>- <div class="lp-auth-panel-kicker">// <%= t('.panel_label') %></div>+ <div class="lp-auth-panel-kicker"><%= t('.panel_label') %></div><h2 class="lp-auth-panel-h2"><%= t('.panel_title') %></h2><div class="lp-auth-callout">diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erbindex 4e48562..5aa27f0 100644--- a/app/views/devise/passwords/new.html.erb+++ b/app/views/devise/passwords/new.html.erb@@ -36,7 +36,7 @@<% end %><% content_for :auth_panel do %>- <div class="lp-auth-panel-kicker">// <%= t('.panel_label') %></div>+ <div class="lp-auth-panel-kicker"><%= t('.panel_label') %></div><h2 class="lp-auth-panel-h2"><%= t('.panel_title') %></h2><div class="lp-auth-steps">diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erbindex 80ff256..0142ba2 100644--- a/app/views/devise/registrations/new.html.erb+++ b/app/views/devise/registrations/new.html.erb@@ -142,7 +142,7 @@<%# Context panel: onboarding steps and the discount box, both mock. %><% content_for :auth_panel_decorative, true %><% content_for :auth_panel do %>-<div class="lp-auth-panel-kicker">// <%= t('.panel_label') %></div>+<div class="lp-auth-panel-kicker"><%= t('.panel_label') %></div><h2 class="lp-auth-panel-h2"><%= t('.panel_title_l1') %><br><%= t('.panel_title_l2') %></h2><div class="lp-auth-steps">diff --git a/app/views/devise/registrations/registration_disabled.html.erb b/app/views/devise/registrations/registration_disabled.html.erbindex 5b5be20..ed9784d 100644--- a/app/views/devise/registrations/registration_disabled.html.erb+++ b/app/views/devise/registrations/registration_disabled.html.erb@@ -30,7 +30,7 @@</div><% content_for :auth_panel do %>- <div class="lp-auth-panel-kicker">// <%= t('views.devise.registrations.disabled.currently_closed') %></div>+ <div class="lp-auth-panel-kicker"><%= t('views.devise.registrations.disabled.currently_closed') %></div><h2 class="lp-auth-panel-h2"><%= t('views.devise.registrations.disabled.what_you_can_do') %></h2><div class="lp-auth-steps">diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erbindex 4695bcf..0c74dd7 100644--- a/app/views/devise/sessions/new.html.erb+++ b/app/views/devise/sessions/new.html.erb@@ -92,7 +92,7 @@<%# Context panel: the waiting inbox as a static mock, therefore decorative. %><% content_for :auth_panel_decorative, true %><% content_for :auth_panel do %>- <div class="lp-auth-panel-kicker">// <%= t('.panel_label') %></div>+ <div class="lp-auth-panel-kicker"><%= t('.panel_label') %></div><h2 class="lp-auth-panel-h2"><%= t('.panel_title') %></h2><div class="lp-auth-win">diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erbindex eb4d32b..1acfef2 100644--- a/app/views/devise/unlocks/new.html.erb+++ b/app/views/devise/unlocks/new.html.erb@@ -38,7 +38,7 @@<% end %><% content_for :auth_panel do %>- <div class="lp-auth-panel-kicker">// <%= t('.panel_label') %></div>+ <div class="lp-auth-panel-kicker"><%= t('.panel_label') %></div><h2 class="lp-auth-panel-h2"><%= t('.panel_title') %></h2><div class="lp-auth-callout">diff --git a/spec/architecture/auth_styles_guard_spec.rb b/spec/architecture/auth_styles_guard_spec.rbnew file mode 100644index 0000000..0e2dde9--- /dev/null+++ b/spec/architecture/auth_styles_guard_spec.rb@@ -0,0 +1,109 @@+# frozen_string_literal: true++require 'rails_helper'++# The sign-in pages (app/views/devise, layout application_auth) look like the public+# pages of lalabase-website since 05.11.2026: "brutalism light", the guide of that+# repository (doc/design/DESIGN.md there). landing_tokens.css and lp_base.css are+# word-for-word mirrors of the website's, auth.css is the website's plus an appendix for+# the pieces only these pages have.+#+# The rules below are the ones of that guide a stylesheet can break without anybody+# noticing in a diff, the same checks the website runs on its copies: a soft shadow on a+# new box, a gradient, light text on a lime ground (white on #BEF264 measures 1.3:1), a+# hard shadow on something that is not where the eye should go first, and the signal+# orange the old pages used as a second accent.+module AuthStyles+ STYLESHEETS = Rails.root.join('app/assets/stylesheets')+ FILES = %w[auth.css lp_base.css landing_tokens.css].map { |name| STYLESHEETS.join(name) }.freeze++ LIGHT_TEXT = /color:\s*(var\(--lp-white\)|var\(--lp-on-dark(-2)?\)|#fff\b|#ffffff\b|white\b)/i+ LIME_GROUND = /background(-color)?:\s*var\(--lp-accent\)/++ # At rest a hard shadow stands only where the eye should go first: the primary door,+ # the drawn window of the product, the one highlighted term. A selector for a state+ # (hover, press, focus, an error) may throw one anyway.+ SHADOW_AT_REST = [/\.lp-btn--(primary|dark)\b/, /\.lp-auth-win\b/, /\.lp-mark\b/].freeze+ STATE = /:(hover|active|focus|focus-visible|focus-within)\b|aria-pressed="true"|\.is-open\b|--error\b/+end++RSpec.describe 'Sign-in page stylesheets follow the website guide', type: :model do+ # Every rule block of every file, as "file: selector" => declarations, comments removed.+ def rules+ AuthStyles::FILES.flat_map do |path|+ css = path.read.gsub(%r{/\*.*?\*/}m, '')+ css.scan(/([^{}]+)\{([^{}]*)\}/).map do |selector, body|+ ["#{path.basename}: #{selector.strip.gsub(/\s+/, ' ')}", body]+ end+ end+ end++ def shadows+ rules.flat_map { |name, body| body.scan(/box-shadow:\s*([^;]+);/).flatten.map { [name, _1.strip] } }+ end++ # A shadow's third length is its blur; tokens (var(...)) are checked where defined.+ def blurred?(value)+ return false if value.start_with?('none', 'var(')++ value.split(/,(?![^(]*\))/).any? do |shadow|+ lengths = shadow.scan(/-?\d*\.?\d+(?:px|em|rem)?(?=\s|$)/)+ lengths.size >= 3 && lengths[2].to_f.positive?+ end+ end++ # An offset shadow: tokens count; a focus ring (0 0 0 3px) or a flat press does not.+ def offset?(value)+ return false if value.start_with?('none')+ return true if value.start_with?('var(')++ value.split(/,(?![^(]*\))/).any? do |shadow|+ shadow.scan(/-?\d*\.?\d+(?:px)?(?=\s|$)/).first(2).any? { |length| length.to_f.nonzero? }+ end+ end++ def shadow_allowed?(selector)+ selector.match?(AuthStyles::STATE) || AuthStyles::SHADOW_AT_REST.any? { selector.match?(_1) }+ end++ it 'reads rules at all' do+ # Without this every guard below passes the day a file moves.+ expect(rules.size).to be > 100+ end++ it 'draws every shadow hard, without blur' do+ soft = shadows.select { |_, value| blurred?(value) }.map { |name, value| "#{name}: #{value}" }++ expect(soft).to be_empty, "Soft shadows:\n#{soft.join("\n")}"+ end++ it 'throws a shadow at rest only where the eye should go first' do+ offenders = shadows.select { |_, value| offset?(value) }.flat_map do |name, value|+ file, selectors = name.split(': ', 2)+ selectors.split(',').map(&:strip).reject { shadow_allowed?(_1) }.map { "#{file}: #{_1} (#{value})" }+ end++ expect(offenders).to be_empty, "Shadows at rest outside the list:\n#{offenders.join("\n")}"+ end++ it 'uses no gradient' do+ expect(rules.filter_map { |name, body| name if body.include?('gradient(') }).to be_empty+ end++ it 'never sets light text on the lime ground' do+ offenders = rules.filter_map do |name, body|+ name if body.match?(AuthStyles::LIME_GROUND) && body.match?(AuthStyles::LIGHT_TEXT)+ end++ expect(offenders).to be_empty, "Light text on lime:\n#{offenders.join("\n")}"+ end++ # The alert flash drew its bar in var(--lp-signal) until 05.11.2026; the token is gone+ # with the second accent, and a var() of an undefined token draws nothing at all.+ it 'brings back no second accent' do+ css = AuthStyles::FILES.map(&:read).join("\n")++ expect(css).not_to match(/#E4552B/i)+ expect(css).not_to include('--lp-signal')+ end+end