Files
pages/static/css/auth.css
T
Anya Tokugawa b90aef79d0
Build and publish container images / images (push) Successful in 11m37s
Release container images / release (push) Successful in 22s
feat: add browser upload queue and trusted sessions with bounded projections
2026-11-08 20:27:04 +09:00

197 lines
4.8 KiB
CSS

.auth-page {
--home-glass-opacity: 58%;
min-height: 100vh;
min-height: 100dvh;
overflow-x: hidden;
background-color: var(--bg);
}
.auth-page > :not(.home-wallpaper) {
position: relative;
z-index: 1;
}
.auth-brand {
position: fixed;
top: 1rem;
left: 1.25rem;
max-width: min(24rem, calc(100vw - 2.5rem));
overflow: hidden;
color: var(--fg);
font-size: 1rem;
font-weight: 650;
line-height: 2.25rem;
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
}
.auth-shell {
display: grid;
place-items: center;
width: min(100% - 2rem, 30rem);
min-height: 100vh;
min-height: 100dvh;
margin: 0 auto;
padding: 5.5rem 0 3rem;
box-sizing: border-box;
}
.auth-card {
width: 100%;
box-sizing: border-box;
padding: clamp(1.35rem, 4vw, 2rem);
border: 1px solid color-mix(in srgb, var(--border) 72%, var(--accent) 28%);
border-radius: 1rem;
background: color-mix(in srgb, var(--bg) var(--home-glass-opacity, 58%), transparent);
box-shadow: 0 1.4rem 4rem #0007;
-webkit-backdrop-filter: blur(18px) saturate(120%);
backdrop-filter: blur(18px) saturate(120%);
}
.auth-heading h1 {
margin: 0 0 1.4rem;
font-size: clamp(1.5rem, 5vw, 2rem);
font-weight: 620;
letter-spacing: -.02em;
}
.auth-form {
display: grid;
gap: 1rem;
}
.auth-form label {
display: grid;
gap: .4rem;
color: var(--fg);
font-size: .88rem;
}
.auth-form input {
width: 100%;
box-sizing: border-box;
padding: .72rem .82rem;
border: 1px solid color-mix(in srgb, var(--input-border, var(--border)) 82%, var(--accent) 18%);
border-radius: .55rem;
background: color-mix(in srgb, var(--input-bg, var(--bg)) 78%, transparent);
color: var(--input-fg, var(--fg));
font: inherit;
}
.auth-form input:focus {
border-color: var(--accent);
outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
outline-offset: 2px;
}
.auth-primary,
.auth-secondary,
.auth-provider-button {
display: flex;
align-items: center;
justify-content: center;
gap: .65rem;
min-height: 2.8rem;
box-sizing: border-box;
padding: .65rem 1rem;
border: 1px solid color-mix(in srgb, var(--border) 72%, var(--accent) 28%);
border-radius: .6rem;
color: var(--fg);
font: inherit;
font-weight: 620;
text-align: center;
text-decoration: none;
cursor: pointer;
}
.auth-primary {
border-color: var(--accent);
background: var(--accent);
color: var(--bg);
}
.auth-secondary,
.auth-provider-button {
background: color-mix(in srgb, var(--button-bg, var(--bg)) 72%, transparent);
}
.auth-primary:hover,
.auth-primary:focus-visible,
.auth-secondary:hover,
.auth-secondary:focus-visible,
.auth-provider-button:hover,
.auth-provider-button:focus-visible {
filter: brightness(1.08);
outline: 2px solid color-mix(in srgb, var(--accent) 48%, transparent);
outline-offset: 2px;
}
.auth-provider-button svg {
width: 1.35rem;
height: 1.35rem;
fill: none;
stroke: currentColor;
stroke-width: 1.65;
stroke-linecap: round;
stroke-linejoin: round;
}
.auth-separator {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: .7rem;
margin: 1.2rem 0;
color: var(--muted);
font-size: .78rem;
}
.auth-separator::before,
.auth-separator::after {
height: 1px;
background: var(--border-soft, var(--border));
content: "";
}
.auth-magic-form {
margin-top: 1.2rem;
padding-top: 1.2rem;
border-top: 1px solid var(--border-soft, var(--border));
}
.auth-error {
padding: .65rem .75rem;
border: 1px solid color-mix(in srgb, #d33 65%, var(--border));
border-radius: .5rem;
background: color-mix(in srgb, #d33 12%, transparent);
color: color-mix(in srgb, #f55 80%, var(--fg));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.auth-card { background: color-mix(in srgb, var(--bg) 92%, transparent); }
}
@media (max-width: 600px) {
.auth-brand { left: .75rem; }
.auth-shell { width: min(100% - 1.25rem, 30rem); padding-top: 4.5rem; }
}
@media (forced-colors: active) {
.auth-card,
.auth-form input,
.auth-primary,
.auth-secondary,
.auth-provider-button {
border-color: CanvasText;
background: Canvas;
color: CanvasText;
box-shadow: none;
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
}
/* Keep the persistent-session control compact and touchable in all themes. */
.auth-form label.auth-remember{display:flex;flex-direction:row;align-items:center;gap:.65rem;min-height:44px;font-size:.85rem;cursor:pointer}
.auth-form label.auth-remember input{width:1.15rem;height:1.15rem;min-height:0;flex:0 0 auto;padding:0;margin:0;accent-color:var(--accent)}