Files
paliad/static/css/style.css
m 21bf56dc20 feat: add Supabase password auth with @hoganlovells.com restriction
Go server authenticates against Supabase GoTrue (youpc instance) using
email+password. Login page with login/register tabs, domain restricted
to @hoganlovells.com. Auth middleware protects all routes, refreshes
expired tokens via refresh_token cookie. Lime green branding.

- internal/auth: Supabase client (sign in, sign up, refresh, sign out),
  JWT expiry decode, auth middleware, cookie management
- internal/handlers: login/register/logout handlers, per-page template
  parsing to avoid content block collisions
- templates/login.html: tabbed login/register form
- 30-day HTTP-only session cookies with SameSite=Lax
- SUPABASE_URL and SUPABASE_ANON_KEY env vars in docker-compose
2026-04-14 16:34:17 +02:00

424 lines
7.6 KiB
CSS

/* patholo — Patent Knowledge for Hogan Lovells */
:root {
--color-bg: #fafafa;
--color-surface: #ffffff;
--color-text: #1a1a2e;
--color-text-muted: #64647a;
--color-accent: #65a30d; /* lime green */
--color-accent-light: #84cc16;
--color-border: #e5e5ed;
--color-hero-bg: #1a2e1a; /* dark forest */
--color-hero-text: #ffffff;
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: "JetBrains Mono", "Fira Code", monospace;
--radius: 8px;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
--max-width: 1080px;
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--font-sans);
color: var(--color-text);
background: var(--color-bg);
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
flex: 1;
}
.container {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 1.5rem;
}
/* ─── Header ─── */
.header {
background: var(--color-surface);
border-bottom: 1px solid var(--color-border);
position: sticky;
top: 0;
z-index: 10;
}
.nav {
display: flex;
align-items: center;
justify-content: space-between;
height: 3.5rem;
}
.logo {
display: flex;
align-items: baseline;
gap: 0.15rem;
text-decoration: none;
font-weight: 600;
font-size: 1.15rem;
letter-spacing: -0.02em;
color: var(--color-text);
}
.logo-mark {
font-family: var(--font-mono);
color: var(--color-accent);
font-weight: 700;
font-size: 1.3rem;
}
.nav-right {
display: flex;
align-items: center;
gap: 1.25rem;
}
.nav-logout {
font-size: 0.8rem;
color: var(--color-text-muted);
text-decoration: none;
}
.nav-logout:hover {
color: var(--color-accent);
}
.nav-lang {
font-size: 0.8rem;
letter-spacing: 0.05em;
color: var(--color-text-muted);
user-select: none;
}
.lang-active {
color: var(--color-accent);
font-weight: 600;
}
.lang-sep {
margin: 0 0.25rem;
}
/* ─── Hero ─── */
.hero {
background: var(--color-hero-bg);
color: var(--color-hero-text);
padding: 5rem 0 4.5rem;
}
.hero h1 {
font-size: 2.75rem;
font-weight: 700;
line-height: 1.15;
letter-spacing: -0.03em;
}
.hero-accent {
font-weight: 400;
opacity: 0.85;
}
.hero-sub {
margin-top: 1.25rem;
font-size: 1.1rem;
line-height: 1.7;
opacity: 0.9;
max-width: 560px;
}
.hero-en {
font-style: italic;
opacity: 0.7;
font-size: 0.95rem;
}
/* ─── Card Grid ─── */
.sections {
padding: 4rem 0;
}
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}
.card {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 2rem;
transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
box-shadow: var(--shadow-md);
border-color: var(--color-accent-light);
}
.card-icon {
width: 2.25rem;
height: 2.25rem;
color: var(--color-accent);
margin-bottom: 1rem;
}
.card-icon svg {
width: 100%;
height: 100%;
}
.card h2 {
font-size: 1.15rem;
font-weight: 600;
margin-bottom: 0.5rem;
letter-spacing: -0.01em;
}
.card-en {
font-weight: 400;
color: var(--color-text-muted);
font-size: 0.85rem;
}
.card p {
color: var(--color-text-muted);
font-size: 0.92rem;
line-height: 1.6;
}
/* ─── Offices ─── */
.offices {
padding: 0 0 4rem;
}
.offices h3 {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--color-text-muted);
margin-bottom: 1rem;
}
.offices .card-en {
text-transform: none;
letter-spacing: normal;
}
.office-list {
display: flex;
gap: 2rem;
flex-wrap: wrap;
}
.office-list span {
font-size: 1rem;
font-weight: 500;
color: var(--color-text);
position: relative;
padding-left: 0.85rem;
}
.office-list span::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--color-accent);
}
/* ─── Footer ─── */
.footer {
border-top: 1px solid var(--color-border);
padding: 1.5rem 0;
margin-top: auto;
}
.footer p {
font-size: 0.8rem;
color: var(--color-text-muted);
text-align: center;
}
/* ─── Login ─── */
.login-main {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 3rem 1.5rem;
}
.login-card {
width: 100%;
max-width: 400px;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 2.5rem;
box-shadow: var(--shadow-md);
}
.login-tabs {
display: flex;
margin-bottom: 1.75rem;
border-bottom: 1px solid var(--color-border);
}
.login-tab {
flex: 1;
padding: 0.6rem 0;
background: none;
border: none;
border-bottom: 2px solid transparent;
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 500;
color: var(--color-text-muted);
cursor: pointer;
transition: color 0.15s ease, border-color 0.15s ease;
}
.login-tab:hover {
color: var(--color-text);
}
.login-tab.active {
color: var(--color-accent);
border-bottom-color: var(--color-accent);
}
.login-error {
background: #fef2f2;
color: #991b1b;
border: 1px solid #fecaca;
border-radius: var(--radius);
padding: 0.75rem 1rem;
font-size: 0.85rem;
margin-bottom: 1.25rem;
line-height: 1.5;
}
.login-success {
background: #f0fdf4;
color: #166534;
border: 1px solid #bbf7d0;
border-radius: var(--radius);
padding: 0.75rem 1rem;
font-size: 0.85rem;
margin-bottom: 1.25rem;
line-height: 1.5;
}
.login-form {
display: flex;
flex-direction: column;
}
.login-label {
font-size: 0.85rem;
font-weight: 500;
color: var(--color-text);
margin-bottom: 0.35rem;
margin-top: 0.75rem;
}
.login-label:first-child {
margin-top: 0;
}
.login-input {
font-family: var(--font-sans);
font-size: 0.92rem;
padding: 0.6rem 0.8rem;
border: 1px solid var(--color-border);
border-radius: var(--radius);
outline: none;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
color: var(--color-text);
background: var(--color-bg);
}
.login-input:focus {
border-color: var(--color-accent);
box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15);
}
.login-input::placeholder {
color: var(--color-text-muted);
opacity: 0.6;
}
.login-button {
font-family: var(--font-sans);
font-size: 0.92rem;
font-weight: 600;
padding: 0.65rem 1rem;
margin-top: 1.25rem;
border: none;
border-radius: var(--radius);
background: var(--color-accent);
color: #ffffff;
cursor: pointer;
transition: background 0.15s ease;
}
.login-button:hover {
background: var(--color-accent-light);
}
.login-hint {
font-size: 0.78rem;
color: var(--color-text-muted);
text-align: center;
margin-top: 1.5rem;
}
/* ─── Responsive ─── */
@media (max-width: 768px) {
.hero {
padding: 3.5rem 0 3rem;
}
.hero h1 {
font-size: 2rem;
}
.grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.office-list {
gap: 1.25rem;
}
}