169 lines
7.4 KiB
CSS
169 lines
7.4 KiB
CSS
/* ── splash.css ───────────────────────────────
|
|
Auth splash, login, PWA install banner
|
|
──────────────────────────────────────────── */
|
|
|
|
/* ── Auth Splash ─────────────────────────── */
|
|
|
|
.splash {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
/* Hero Panel (left) */
|
|
.splash-hero {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 4rem 3.5rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(ellipse 80% 60% at 30% 40%, rgba(108,159,255,0.06), transparent),
|
|
radial-gradient(ellipse 60% 50% at 70% 70%, rgba(167,139,250,0.05), transparent),
|
|
var(--bg);
|
|
}
|
|
.splash-hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -50%;
|
|
background-image:
|
|
linear-gradient(rgba(108,159,255,0.04) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(108,159,255,0.04) 1px, transparent 1px);
|
|
background-size: 48px 48px;
|
|
animation: gridDrift 30s linear infinite;
|
|
pointer-events: none;
|
|
}
|
|
@keyframes gridDrift { to { transform: translate(48px, 48px); } }
|
|
.splash-hero::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 320px; height: 320px;
|
|
bottom: -80px; right: -60px;
|
|
background: radial-gradient(circle, rgba(167,139,250,0.08), transparent 70%);
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hero-content { position: relative; z-index: 1; max-width: 520px; }
|
|
.hero-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; }
|
|
.hero-logo-mark { width: 48px; height: 48px; flex-shrink: 0; }
|
|
.hero-logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
|
|
.hero-wordmark { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
|
|
.hero-wordmark span { color: var(--accent); }
|
|
|
|
.hero-headline {
|
|
font-size: 2.4rem; font-weight: 700; line-height: 1.15;
|
|
letter-spacing: -0.03em; margin-bottom: 1rem;
|
|
background: linear-gradient(135deg, var(--text) 0%, var(--text-2) 100%);
|
|
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
|
}
|
|
.hero-sub { font-size: 1.05rem; color: var(--text-2); line-height: 1.6; margin-bottom: 2.5rem; max-width: 440px; }
|
|
|
|
.hero-features { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
.hero-pill {
|
|
display: inline-flex; align-items: center; gap: 7px;
|
|
padding: 7px 14px; background: var(--bg-surface);
|
|
border: 1px solid var(--border); border-radius: 100px;
|
|
font-size: 0.8rem; font-weight: 500; color: var(--text-2);
|
|
transition: all var(--transition);
|
|
}
|
|
.hero-pill:hover { border-color: var(--border-light); color: var(--text); }
|
|
.hero-pill .pill-icon { font-size: 0.95rem; line-height: 1; }
|
|
.hero-pill.accent { border-color: rgba(108,159,255,0.2); color: var(--accent); }
|
|
.hero-pill.purple { border-color: rgba(167,139,250,0.2); color: var(--purple); }
|
|
.hero-version { margin-top: 3rem; font-size: 0.72rem; font-family: var(--mono); color: var(--text-3); letter-spacing: 0.04em; }
|
|
|
|
/* Auth Panel (right) */
|
|
.splash-auth {
|
|
width: 440px; flex-shrink: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
padding: 2rem; background: var(--bg-surface);
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
.auth-card { width: 100%; max-width: 340px; }
|
|
.auth-card-header { margin-bottom: 2rem; }
|
|
.auth-card-header h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
|
|
.auth-card-header p { font-size: 0.85rem; color: var(--text-3); }
|
|
|
|
.auth-tabs { display: flex; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
|
|
.auth-tab {
|
|
flex: 1; background: none; border: none; color: var(--text-3);
|
|
padding: 10px 0; cursor: pointer; font-family: var(--font);
|
|
font-size: 0.85rem; font-weight: 500;
|
|
border-bottom: 2px solid transparent;
|
|
transition: color var(--transition);
|
|
}
|
|
.auth-tab:hover { color: var(--text-2); }
|
|
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
|
|
.auth-error { color: var(--danger); font-size: 0.78rem; min-height: 1.2em; margin: 0.5rem 0; }
|
|
.splash-error { color: var(--danger); font-size: 0.78rem; text-align: center; margin-top: 0.5rem; line-height: 1.5; }
|
|
.splash-error strong { display: block; font-size: 0.85rem; margin-bottom: 0.25rem; }
|
|
.splash-error-hint { color: var(--text-3); font-size: 0.72rem; }
|
|
.splash-error-hint a { color: var(--accent); text-decoration: underline; cursor: pointer; }
|
|
.auth-actions { margin-top: 1.5rem; }
|
|
.auth-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
|
|
.auth-footer p { font-size: 0.75rem; color: var(--text-3); line-height: 1.6; }
|
|
|
|
/* Splash entrance animation */
|
|
.hero-logo-row, .hero-headline, .hero-sub, .hero-features, .hero-version,
|
|
.auth-card-header, .splash .auth-tabs, #authLoginForm, .splash .auth-actions {
|
|
opacity: 0; transform: translateY(12px);
|
|
animation: fadeUp 0.5s ease forwards;
|
|
}
|
|
.hero-logo-row { animation-delay: 0.05s; }
|
|
.hero-headline { animation-delay: 0.12s; }
|
|
.hero-sub { animation-delay: 0.19s; }
|
|
.hero-features { animation-delay: 0.26s; }
|
|
.hero-version { animation-delay: 0.33s; }
|
|
.auth-card-header { animation-delay: 0.15s; }
|
|
.splash .auth-tabs { animation-delay: 0.22s; }
|
|
#authLoginForm { animation-delay: 0.29s; }
|
|
.splash .auth-actions { animation-delay: 0.36s; }
|
|
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
|
|
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
|
|
/* Splash responsive */
|
|
@media (max-width: 860px) {
|
|
.splash { flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow-y: auto; }
|
|
.splash-hero { padding: 2.5rem 1.75rem 2rem; min-height: auto; flex: none; }
|
|
.hero-headline { font-size: 1.8rem; }
|
|
.hero-sub { font-size: 0.95rem; margin-bottom: 1.5rem; }
|
|
.hero-version { margin-top: 1.5rem; }
|
|
.splash-auth { width: 100%; border-left: none; border-top: 1px solid var(--border); padding: 2rem 1.75rem; }
|
|
.auth-card { max-width: 400px; }
|
|
}
|
|
@media (max-width: 480px) {
|
|
.splash-hero { padding: 1.5rem 1.25rem 1rem; }
|
|
.hero-logo-row { gap: 10px; margin-bottom: 0.75rem; }
|
|
.hero-logo-mark { width: 40px; height: 40px; }
|
|
.hero-logo-img { width: 40px; height: 40px; }
|
|
.hero-wordmark { font-size: 1.3rem; }
|
|
.hero-headline { font-size: 1.35rem; margin-bottom: 0.5rem; }
|
|
.hero-sub { font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.5; }
|
|
.hero-features { gap: 6px; }
|
|
.hero-pill { padding: 5px 10px; font-size: 0.72rem; }
|
|
.hero-version { margin-top: 1rem; }
|
|
.splash-auth { padding: 1.5rem 1.25rem; }
|
|
.auth-card-header { margin-bottom: 1rem; }
|
|
.auth-card-header h2 { font-size: 1.1rem; }
|
|
.auth-actions { margin-top: 1rem; }
|
|
}
|
|
|
|
|
|
/* ── PWA Install Banner ──────────────────── */
|
|
|
|
.pwa-install-banner {
|
|
position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
|
|
background: var(--bg-raised); border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-lg); padding: 10px 16px;
|
|
display: flex; align-items: center; gap: 12px;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 3000;
|
|
font-size: 13px; color: var(--text-2);
|
|
animation: pwa-banner-in 0.3s ease;
|
|
max-width: 90vw;
|
|
}
|
|
@keyframes pwa-banner-in { from { opacity: 0; transform: translateX(-50%) translateY(20px); } }
|
|
|