129 lines
2.7 KiB
CSS
129 lines
2.7 KiB
CSS
/* ── Password Gate Module ─────────────────────────── */
|
||
|
||
.gate {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-height: calc(100vh - var(--header-height));
|
||
padding: 24px;
|
||
}
|
||
|
||
.card {
|
||
text-align: center;
|
||
padding: 48px 40px;
|
||
max-width: 400px;
|
||
width: 100%;
|
||
background: var(--bg-secondary);
|
||
border: 1px solid var(--border-subtle);
|
||
border-radius: var(--radius-lg);
|
||
}
|
||
|
||
.title {
|
||
font-family: var(--font-serif);
|
||
font-size: 1.8rem;
|
||
font-weight: 400;
|
||
letter-spacing: 0.02em;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.subtitle {
|
||
font-size: 0.85rem;
|
||
color: var(--text-secondary);
|
||
font-weight: 300;
|
||
margin-bottom: 32px;
|
||
}
|
||
|
||
.form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.input {
|
||
width: 100%;
|
||
padding: 12px 16px;
|
||
background: var(--bg-primary);
|
||
border: 1px solid var(--input-border);
|
||
border-radius: var(--radius-md);
|
||
color: var(--text-primary);
|
||
font-family: var(--font-sans);
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
/* No focus rule of its own: the global one in app/tokens.css draws the ring.
|
||
This used to add an accent ring on top of an accent border — two red
|
||
outlines on the one page whose only purpose is typing, and a different
|
||
signal from every other control on the site. */
|
||
|
||
.input::placeholder {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.button {
|
||
padding: 12px 24px;
|
||
background: var(--accent);
|
||
color: var(--on-accent);
|
||
border: none;
|
||
border-radius: var(--radius-md);
|
||
font-family: var(--font-sans);
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
letter-spacing: 0.05em;
|
||
cursor: pointer;
|
||
transition: opacity var(--transition-fast);
|
||
}
|
||
|
||
.button:hover {
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.button:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.error {
|
||
margin-top: 12px;
|
||
font-size: 0.8rem;
|
||
/* Per-mode token; the fixed red it replaces measured 3.2–3.6:1 on the
|
||
light presets. */
|
||
color: var(--error);
|
||
font-weight: 400;
|
||
}
|
||
|
||
.spinner {
|
||
animation: spin 1s linear infinite;
|
||
display: inline-block;
|
||
margin-right: 8px;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
@keyframes spin {
|
||
from {
|
||
transform: rotate(0deg);
|
||
}
|
||
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
/* Legal links under the site gate's card: the footer the gate has no room
|
||
for. The links themselves take the footer's .footer__legal-link styling, so
|
||
every preset sets them the way it sets its footer. */
|
||
.legal {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
gap: 8px 20px;
|
||
margin-top: 24px;
|
||
}
|
||
|
||
/* ── Responsive ──────────────────────────────────── */
|
||
@media (max-width: 640px) {
|
||
.card {
|
||
padding: 36px 24px;
|
||
}
|
||
}
|