跪拜 Guibai
← All articles
Frontend · CSS · Design

Empty AI login pages are a layering problem: five CSS-only layouts lift coverage from 5.8% to 24.8%

By ENCI ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Teams burning time on AI mockups get a reusable checklist that converts "make it look good" into numbers a machine can follow and a human can verify. A light-dependent layout that reads as filled at just 8% coverage also means the fix is cheap even with zero brand material on hand.

Summary

AI defaults to a 340px login form centered on a white 1440×900 canvas, which covers 5.8% of the viewport and leaves zero structure behind it. The article's claim is that emptiness is a layering problem, not a field-count problem: one layer of focus with nothing behind it reads as an unfinished page. It measures any layout with three metrics — content block count, coverage (the union of content bounding boxes over the viewport, sampled on a 6px grid), and the content bounding box — and argues block count predicts emptiness better than area does.

Five pure-CSS layouts each anchor a second layer differently. A 54/46 split puts brand narrative, three numbered value points, and a client logo wall on the left. A centered glass card over a radial-lit dark field gets the most counterintuitive result: 8.1% coverage and 91.9% blank space, statistically close to the default, yet it reads as filled because background light replaces dead white. A typographic layout makes the 46px headline itself the visual weight. A product-stage layout fakes the product UI in CSS so users see the interface before logging in, reaching the top coverage of 24.8%. A narrative split answers "why register" on the left while the right side runs a three-step flow.

The article also ships a prompt for AI tools: seven rules that are all countable, like form width locked to 360–420px, a non-form layer taking at least 25% of the viewport, second-layer content requiring three readable blocks, and a minimum of eight content blocks on the first screen. Every rule is something a human can verify after generation, which is what makes the AI's output fixable instead of a lucky draw.

Takeaways
— A login page reads as empty when it has one layer of focus and nothing behind it; the fix is layering, not adding fields.
— AI's default desktop output — a 340px form on a 1440×900 canvas — produces 4 content blocks and 5.8% coverage.
— Emptiness is measurable with three metrics: block count, coverage (union of content bounding boxes ÷ viewport, sampled on a 6px grid at 36,000 points), and the content bounding box.
— Fewer than 8 content blocks reads as thin; layouts that genuinely use the space hold 12–16 blocks.
— The V2 ambient card measures 8.1% coverage and 91.9% blank — only 2.3 points flatter than the default — yet reads as filled because the background carries light.
— Font size is area: a 46px headline alone stretched V3's content box to 874×493 and shifted the visual center −227px with zero added blocks.
— V4's fake product UI tops coverage at 24.8% but must resemble the real product, or the post-login gap destroys trust.
— The paste-ready prompt locks form width to 360–420px, requires a non-form layer at ≥25% of the viewport, ≥3 readable second-layer blocks, ≥8 content blocks, and pass checks like a title ≥36px with a box width ≥55%.
— Below a 900px viewport, every layout collapses to a single column and the second layer shrinks to a 220px top brand bar.
— Pure illustration on the left split does nothing on 1440px; the zone needs at least one proposition plus three numbered value points.
Conclusions

Perceived emptiness and measured emptiness diverge sharply: V2 and V0 are statistically close (91.9% vs 94.2% blank) but read completely differently, so a single coverage number won't tell you whether a design feels finished — you have to know what the background is doing.

Block count predicts emptiness better than pixel area, which matches how users actually scan: a sparse layout built on a few large regions still feels hollow, while many structured elements read as populated regardless of proportion.

Countable prompt rules generalize beyond login pages to any AI UI work; the same principle that turns "add a spring" into "spring to 1.05 then settle to 1.0" turns "keep it airy" into a floor of eight content blocks and a 25%-viewport second layer.

The cheapest fix in the set is the one that adds nothing but light — a radial gradient over a dark field — which suggests background treatment should be treated as a layout decision, not a decoration pass.

Concepts & terms
Content coverage
The union area of all content-block bounding boxes divided by the viewport area, with overlap counted once. This article samples it on a 6px grid over a 1440×900 viewport (36,000 points) to produce a measurable "how full the screen is" figure.
Content bounding box
The smallest rectangle enclosing every content block on screen. It determines where the visual center of gravity lands and whether horizontal space is actually being used.
Second layer
Any non-form visual structure behind the login form — a brand zone, ambient light, or typographic anchor. The article's core fix for empty pages: emptiness comes from having one layer of focus and nothing behind it.
Measurable prompt constraints
Prompt rules phrased so each one can be counted or checked numerically — a coverage percentage, a block count, a pixel width. The article claims AI tools execute these reliably, while vague adjectives like "airy" or "polished" get ignored.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗