firebreak/web/app/static/css/input.css

579 lines
15 KiB
CSS

@import "tailwindcss";
@theme {
--font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
--color-brand-obsidian: #17191c;
--color-brand-jet: #000000;
--color-brand-cream: #f7f2e8;
--color-brand-ash: #bdb8ad;
--color-brand-red: #c62030;
--color-brand-flame: #f04a36;
--color-background: var(--color-brand-obsidian);
--color-foreground: var(--color-brand-cream);
--color-card: #1f2226;
--color-card-foreground: var(--color-brand-cream);
--color-muted: #282b30;
--color-muted-foreground: var(--color-brand-ash);
--color-accent: #2f2728;
--color-accent-foreground: var(--color-brand-cream);
--color-primary: #2a2d31;
--color-primary-foreground: var(--color-brand-cream);
--color-primary-hover: var(--color-brand-obsidian);
--color-primary-muted: rgb(247 242 232 / 14%);
--color-secondary: #282b30;
--color-secondary-foreground: var(--color-brand-cream);
--color-border: #34373d;
--color-border-subtle: #282b30;
--color-input: #1f2226;
--color-ring: var(--color-brand-cream);
--color-ring-muted: rgb(247 242 232 / 18%);
--color-header: var(--color-brand-jet);
--color-header-foreground: var(--color-brand-cream);
--color-panel: #1f2226;
--color-panel-foreground: var(--color-brand-cream);
--color-overlay: var(--color-brand-obsidian);
--color-success: oklch(75% 0.12 150);
--color-success-foreground: oklch(82% 0.12 150);
--color-success-muted: oklch(32% 0.07 150);
--color-warning: oklch(82% 0.13 75);
--color-warning-foreground: oklch(86% 0.13 75);
--color-warning-muted: oklch(35% 0.075 75);
--color-danger: var(--color-brand-flame);
--color-danger-foreground: #ff7a66;
--color-danger-hover: var(--color-brand-red);
--color-danger-hover-foreground: var(--color-brand-cream);
--color-danger-muted: rgb(240 74 54 / 18%);
--color-expired: var(--color-brand-ash);
--color-expired-foreground: #d6d0c4;
--color-expired-muted: #282b30;
--radius-sm: 0.125rem;
--radius-md: 0.25rem;
--radius-lg: 0.375rem;
--radius-xl: 0.5rem;
--radius-2xl: 0.75rem;
--shadow-card: 0 1px 2px rgb(0 0 0 / 22%);
--shadow-hero-logo: 0 14px 34px rgb(0 0 0 / 55%);
--shadow-hero-text: 0 4px 18px rgb(0 0 0 / 72%);
--shadow-hero-panel: 0 18px 50px rgb(0 0 0 / 24%);
}
@layer base {
* {
@apply border-border;
}
html {
@apply bg-background text-foreground;
color-scheme: dark;
font-family: var(--font-sans);
}
body {
@apply bg-background text-foreground antialiased;
letter-spacing: 0;
}
code {
font-family: var(--font-mono);
}
h1,
h2,
h3 {
@apply text-foreground;
}
}
@layer components {
.skip-link {
@apply fixed left-4 top-4 z-50 -translate-y-16 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground opacity-0 transition focus-visible:translate-y-0 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;
}
.btn {
@apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 py-2.5 text-sm font-medium transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
}
.btn-xs {
@apply px-2 py-1 text-xs;
}
.btn-sm {
@apply px-3 py-2 text-sm;
}
.btn-md {
@apply px-4 py-2.5 text-sm;
}
.btn-lg {
@apply px-5 py-3 text-base;
}
.btn-primary {
@apply bg-primary text-primary-foreground hover:bg-primary-hover hover:text-primary-foreground;
}
.btn-secondary {
@apply border border-border bg-card text-secondary-foreground hover:border-border hover:bg-accent hover:text-accent-foreground;
}
.btn-borderless {
@apply bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground;
}
.btn-danger {
@apply border border-danger-muted bg-danger-muted text-danger-foreground hover:border-danger-hover hover:bg-danger-hover hover:text-danger-hover-foreground;
}
.btn-link {
@apply inline-flex items-center justify-center gap-2 rounded-sm bg-transparent px-0 py-1 text-sm font-medium text-muted-foreground underline decoration-border underline-offset-4 transition hover:text-foreground hover:decoration-brand-red focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-4 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
}
.app-header {
position: relative;
z-index: 10;
background: var(--color-header);
border-bottom: 0;
box-shadow: none;
}
.app-header a,
.app-header button,
.app-header nav svg {
color: var(--color-header-foreground);
stroke: var(--color-header-foreground);
}
.app-header .brand-link svg {
stroke: none;
}
.brand-mark {
color: var(--color-brand-red);
}
.brand-wordmark {
color: var(--color-header-foreground);
}
.app-header .btn-borderless {
color: var(--color-header-foreground);
}
.app-header .btn-borderless:hover {
background: color-mix(in oklab, var(--color-header-foreground) 10%, transparent);
color: var(--color-header-foreground);
}
.app-header .btn-secondary {
background: color-mix(in oklab, var(--color-header-foreground) 8%, transparent);
border-color: color-mix(in oklab, var(--color-header-foreground) 18%, transparent);
color: var(--color-header-foreground);
}
.app-header .btn-secondary:hover {
background: color-mix(in oklab, var(--color-header-foreground) 14%, transparent);
border-color: color-mix(in oklab, var(--color-header-foreground) 28%, transparent);
color: var(--color-header-foreground);
}
.landing-page .app-header {
display: none;
}
.landing-page {
background: var(--color-background);
}
.hero-section {
@apply relative flex min-h-dvh w-full items-center justify-center overflow-hidden bg-background px-6 py-20 text-center text-foreground;
}
.hero-video {
@apply absolute inset-0 h-full w-full object-cover;
}
.hero-overlay {
@apply absolute inset-0 bg-overlay/65;
}
.hero-vignette {
@apply absolute inset-0;
background: radial-gradient(
circle at center,
transparent 0,
transparent 30%,
color-mix(in oklab, var(--color-overlay) 44%, transparent) 62%,
color-mix(in oklab, var(--color-overlay) 92%, transparent) 100%
);
}
.hero-content {
@apply relative z-10 flex w-full max-w-4xl flex-col items-center;
}
.hero-brand {
@apply h-auto w-full max-w-36 sm:max-w-48 lg:max-w-60;
filter: drop-shadow(var(--shadow-hero-logo));
}
.hero-tagline {
@apply mt-8 max-w-2xl text-balance text-base font-medium leading-8 tracking-normal text-foreground/90 sm:text-lg sm:leading-9;
filter: drop-shadow(var(--shadow-hero-text));
}
.hero-copy-panel {
@apply mt-7 max-w-xl rounded-lg border border-foreground/14 bg-background/42 px-5 py-4 text-sm leading-6 text-foreground/76 backdrop-blur-sm sm:text-[0.9375rem];
box-shadow: var(--shadow-hero-panel);
}
.setup-shell {
@apply flex min-h-dvh items-center justify-center px-6 py-20;
}
.setup-logo {
@apply mx-auto h-auto w-full max-w-24;
}
.setup-title {
@apply mt-6 text-2xl font-semibold text-foreground;
}
.setup-copy {
@apply mt-2 text-sm leading-6 text-foreground/60;
}
.setup-link {
@apply text-foreground/80 underline underline-offset-2 hover:text-foreground;
}
.setup-help-panel {
@apply mb-8 rounded-lg border border-foreground/10 bg-card/60 px-5 py-4 text-xs leading-5 text-foreground/50;
}
.setup-help-title {
@apply mb-2.5 font-medium text-foreground/70;
}
.setup-strong {
@apply text-foreground/70;
}
.setup-code {
@apply mt-1 inline-block rounded bg-foreground/8 px-1.5 py-0.5 font-mono text-[10px] text-foreground/60;
}
.form-label {
@apply mb-1.5 block text-xs font-semibold uppercase tracking-[0.05em] text-foreground/50;
}
.form-label-note {
@apply ml-1 font-normal normal-case tracking-normal text-foreground/30;
}
.form-input {
@apply block w-full rounded-md border border-foreground/14 bg-input px-3 py-2.5 text-sm text-foreground placeholder:text-foreground/30 focus:border-foreground/30 focus:outline-none focus:ring-2 focus:ring-foreground/10;
}
.form-input-mono {
@apply font-mono;
}
.form-hint {
@apply mt-1.5 text-xs text-foreground/30;
}
.form-hint-code {
@apply font-mono text-foreground/40;
}
.error-shell {
@apply relative flex min-h-dvh items-center justify-center overflow-hidden px-6 py-20;
}
.error-backdrop-logo {
@apply absolute inset-bs-8 opacity-50;
width: 100%;
height: 100%;
max-width: 800px;
}
.error-backdrop-logo img {
display: block;
width: 100%;
height: auto;
}
.error-content {
@apply relative z-10 w-full max-w-md text-center;
}
.error-code {
@apply text-8xl font-bold text-foreground/20 sm:text-9xl;
}
.error-title {
@apply mt-1 text-xl font-semibold text-foreground;
}
.error-detail {
@apply mt-4 text-sm leading-6 text-foreground/60;
}
.error-quip {
@apply text-xs italic text-foreground/30;
}
@keyframes creep-in {
from {
opacity: 0;
transform: translateX(100%);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes trot {
0%,
100% {
transform: translateY(0) rotate(0deg);
}
25% {
transform: translateY(-3px) rotate(-0.6deg);
}
75% {
transform: translateY(-3px) rotate(0.6deg);
}
}
@keyframes look-up {
from {
transform: rotate(0deg);
}
to {
transform: rotate(3deg);
}
}
@keyframes laser-pulse {
0%,
100% {
opacity: 0.8;
}
50% {
opacity: 1;
}
}
@keyframes rattle {
0%,
100% {
transform: translate(0, 0);
}
10% {
transform: translate(-1px, 1px);
}
20% {
transform: translate(1px, -1px);
}
30% {
transform: translate(-2px, 0);
}
40% {
transform: translate(2px, 1px);
}
50% {
transform: translate(-1px, -2px);
}
60% {
transform: translate(2px, 2px);
}
70% {
transform: translate(-3px, 1px);
}
80% {
transform: translate(3px, -1px);
}
90% {
transform: translate(-2px, 2px);
}
}
.guard-dog-wrap {
animation: creep-in 6s ease-out both;
animation-delay: 1.5s;
}
.guard-dog-trot {
animation: trot 0.4s ease-in-out 15;
animation-delay: 1.5s;
}
.guard-dog-look {
animation: look-up 0.8s ease-out both;
animation-delay: 7.5s;
transform-origin: bottom center;
}
.laser-eye {
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--color-brand-red);
box-shadow:
0 0 8px 2px var(--color-brand-red),
0 0 24px 6px color-mix(in oklab, var(--color-brand-red) 45%, transparent);
animation: laser-pulse 2s ease-in-out infinite;
animation-delay: 7.5s;
animation-fill-mode: both;
opacity: 0;
}
.laser-eye-left {
inset-block-start: 40px;
inset-inline-start: 81px;
}
.laser-eye-right {
inset-block-start: 39px;
inset-inline-start: 100px;
}
.laser-beam {
position: fixed;
z-index: 100;
height: 2px;
pointer-events: none;
background: linear-gradient(
90deg,
var(--color-brand-red),
color-mix(in oklab, var(--color-brand-red) 0%, transparent)
);
box-shadow:
0 0 8px 2px color-mix(in oklab, var(--color-brand-red) 67%, transparent),
0 0 20px 4px color-mix(in oklab, var(--color-brand-red) 27%, transparent);
opacity: 0;
transform-origin: left center;
}
.laser-beam.fire {
opacity: 1;
transition: opacity 0.05s;
}
.laser-beam.fade {
opacity: 0;
transition: opacity 0.4s;
}
.btn-zapped {
background: var(--color-brand-red) !important;
color: var(--color-brand-cream) !important;
box-shadow:
0 0 12px 4px color-mix(in oklab, var(--color-brand-red) 50%, transparent),
0 0 30px 8px color-mix(in oklab, var(--color-brand-red) 25%, transparent);
animation: rattle 0.15s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.guard-dog-wrap,
.guard-dog-trot,
.guard-dog-look,
.laser-eye,
.laser-beam,
.btn-zapped {
animation: none !important;
transition: none !important;
}
.laser-eye,
.laser-beam {
opacity: 0 !important;
}
}
.brand-link svg {
@apply shrink-0;
stroke: none;
}
.brand-link svg:last-child {
width: 5.25rem;
height: auto;
}
.section-header-subtle {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.badge {
@apply rounded-full px-2.5 py-1 text-xs font-medium;
}
.badge-success {
@apply rounded-full bg-success-muted px-2.5 py-1 text-xs font-medium text-success-foreground;
}
.badge-warning {
@apply rounded-full bg-warning-muted px-2.5 py-1 text-xs font-medium text-warning-foreground;
}
.badge-danger {
@apply rounded-full bg-danger-muted px-2.5 py-1 text-xs font-medium text-danger-foreground;
}
.badge-expired {
@apply rounded-full bg-expired-muted px-2.5 py-1 text-xs font-medium text-expired-foreground;
}
.card {
@apply rounded-lg border border-border bg-card text-card-foreground;
box-shadow: var(--shadow-card);
}
.card-header {
@apply border-b border-border px-4 py-3;
}
.card-header-label {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.card-header-title {
@apply mt-1 text-base font-semibold text-card-foreground;
}
.card-body {
@apply px-4 py-4;
}
.input-mono {
@apply rounded-md border border-border bg-input px-3 py-2 font-mono text-[13px] leading-5 text-foreground transition placeholder:text-muted-foreground focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring-muted;
}
.input-error {
@apply text-sm font-medium text-danger-foreground;
}
}