clavitor/clavitor.com/account/account.css

803 lines
15 KiB
CSS

/* clavitor account — 2027 */
:root {
--bg: #060a10;
--bg-subtle: #0a1018;
--surface: rgba(255,255,255,0.03);
--surface-hover: rgba(255,255,255,0.06);
--surface-active: rgba(255,255,255,0.08);
--glass: rgba(12,18,30,0.7);
--glass-border: rgba(255,255,255,0.06);
--glass-border-hover: rgba(255,255,255,0.12);
--text: #f1f5f9;
--text-secondary: #b0bec5;
--text-tertiary: #8a9bb0;
--accent: #4ade80;
--accent-dim: rgba(74,222,128,0.12);
--accent-glow: rgba(74,222,128,0.25);
--gold: #D4AF37;
--gold-dim: rgba(212,175,55,0.12);
--red: #ef4444;
--red-dim: rgba(239,68,68,0.12);
--radius: 1rem;
--radius-sm: 0.625rem;
--radius-xs: 0.375rem;
--font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
--mono: 'JetBrains Mono', 'SF Mono', monospace;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
--ease-out: cubic-bezier(0, 0, 0.2, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
}
/* ── Ambient background ── */
.ambient {
position: fixed;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.ambient::before {
content: '';
position: absolute;
width: 800px;
height: 800px;
top: -200px;
right: -200px;
background: radial-gradient(circle, rgba(74,222,128,0.04) 0%, transparent 70%);
animation: drift 25s ease-in-out infinite alternate;
}
.ambient::after {
content: '';
position: absolute;
width: 600px;
height: 600px;
bottom: -100px;
left: -150px;
background: radial-gradient(circle, rgba(212,175,55,0.03) 0%, transparent 70%);
animation: drift 30s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
0% { transform: translate(0, 0) scale(1); }
100% { transform: translate(60px, 40px) scale(1.1); }
}
/* ── Grid lines (subtle background texture) ── */
.gridlines {
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
background-image:
linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
background-size: 80px 80px;
mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}
/* ── Layout ── */
.page {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.container {
width: 100%;
max-width: 960px;
margin: 0 auto;
padding: 0 1.5rem;
}
.container-narrow {
max-width: 480px;
}
/* ── Topbar ── */
.topbar {
position: sticky;
top: 0;
z-index: 100;
padding: 0.875rem 0;
background: rgba(6,10,16,0.8);
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
border-bottom: 1px solid var(--glass-border);
}
.topbar-inner {
display: flex;
align-items: center;
justify-content: space-between;
}
.topbar-brand {
font-family: var(--mono);
font-size: 0.875rem;
font-weight: 600;
color: var(--text);
text-decoration: none;
letter-spacing: -0.02em;
display: flex;
align-items: center;
gap: 0.5rem;
}
.topbar-brand .port {
color: var(--text-tertiary);
font-weight: 400;
}
.topbar-nav {
display: flex;
align-items: center;
gap: 0.25rem;
}
.topbar-nav a {
font-size: 0.8125rem;
color: var(--text-secondary);
text-decoration: none;
padding: 0.375rem 0.75rem;
border-radius: var(--radius-xs);
transition: all 0.2s var(--ease);
}
.topbar-nav a:hover { color: var(--text); background: var(--surface-hover); }
.topbar-nav a.active { color: var(--text); background: var(--surface-active); }
.topbar-nav .separator {
width: 1px;
height: 1rem;
background: var(--glass-border);
margin: 0 0.375rem;
}
/* ── Typography ── */
h1 {
font-size: clamp(1.75rem, 3.5vw, 2.5rem);
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1.15;
}
h2 {
font-size: 1.25rem;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.3;
}
h3 {
font-size: 1rem;
font-weight: 600;
letter-spacing: -0.01em;
}
.label {
font-family: var(--mono);
font-size: 0.6875rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-secondary);
}
.label.accent { color: var(--accent); }
.label.gold { color: var(--gold); }
.label.red { color: var(--red); }
.mono { font-family: var(--mono); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
/* ── Buttons ── */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-family: var(--font);
font-size: 0.875rem;
font-weight: 550;
padding: 0.6875rem 1.375rem;
border-radius: var(--radius-sm);
border: none;
cursor: pointer;
text-decoration: none;
transition: all 0.25s var(--ease);
outline: none;
position: relative;
overflow: hidden;
}
.btn:focus-visible {
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.btn-primary {
background: var(--accent);
color: #0a0f14;
}
.btn-primary:hover {
background: #6ee7a0;
transform: translateY(-1px);
box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
background: var(--surface);
color: var(--text-secondary);
border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
color: var(--text);
background: var(--surface-hover);
border-color: var(--glass-border-hover);
}
.btn-danger {
background: var(--red-dim);
color: var(--red);
border: 1px solid rgba(239,68,68,0.15);
}
.btn-danger:hover {
background: rgba(239,68,68,0.18);
border-color: rgba(239,68,68,0.3);
}
.btn-block { width: 100%; }
.btn-lg {
padding: 0.875rem 1.75rem;
font-size: 0.9375rem;
}
.btn .icon {
width: 1rem;
height: 1rem;
flex-shrink: 0;
}
/* ── Cards ── */
.card {
background: var(--surface);
border: 1px solid var(--glass-border);
border-radius: var(--radius);
padding: 1.5rem;
transition: all 0.3s var(--ease);
}
.card-interactive {
cursor: pointer;
}
.card-interactive:hover {
background: var(--surface-hover);
border-color: var(--glass-border-hover);
transform: translateY(-2px);
box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-interactive:active { transform: translateY(0); }
.card-glow:hover {
box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-dim);
}
.card-gold {
border-color: rgba(212,175,55,0.15);
}
.card-gold:hover {
border-color: rgba(212,175,55,0.3);
box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--gold-dim);
}
/* ── Glass panels ── */
.glass {
background: var(--glass);
backdrop-filter: blur(24px) saturate(1.3);
-webkit-backdrop-filter: blur(24px) saturate(1.3);
border: 1px solid var(--glass-border);
border-radius: var(--radius);
}
/* ── Forms ── */
.field { margin-bottom: 1.25rem; }
.field label {
display: block;
font-size: 0.8125rem;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.input {
width: 100%;
font-family: var(--font);
font-size: 0.9375rem;
padding: 0.75rem 1rem;
background: var(--surface);
border: 1px solid var(--glass-border);
border-radius: var(--radius-sm);
color: var(--text);
outline: none;
transition: all 0.2s var(--ease);
}
.input::placeholder { color: var(--text-secondary); }
.input:hover { border-color: var(--glass-border-hover); }
.input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-dim);
}
.input-mono {
font-family: var(--mono);
font-size: 0.875rem;
letter-spacing: 0.02em;
}
/* ── Status indicators ── */
.status-dot {
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.live {
background: var(--accent);
box-shadow: 0 0 8px var(--accent-glow);
animation: pulse-live 2s ease-in-out infinite;
}
.status-dot.expired {
background: var(--red);
box-shadow: 0 0 8px rgba(239,68,68,0.3);
}
.status-dot.pending {
background: var(--gold);
box-shadow: 0 0 8px rgba(212,175,55,0.3);
animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* ── Region cards ── */
.region-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 0.75rem;
}
.region-card {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1.125rem;
}
.region-card .region-name {
font-weight: 600;
font-size: 0.9375rem;
}
.region-card .region-location {
font-size: 0.8125rem;
color: var(--text-secondary);
}
.region-card .region-flag {
font-size: 1.25rem;
line-height: 1;
}
.region-card.selected {
border-color: var(--accent);
background: var(--accent-dim);
box-shadow: 0 0 0 1px var(--accent-dim);
}
.region-card.hq {
border-color: rgba(212,175,55,0.2);
}
.region-card.hq .label { color: var(--gold); }
/* ── Vault list ── */
.vault-row {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--glass-border);
transition: background 0.15s var(--ease);
}
.vault-row:last-child { border-bottom: none; }
.vault-row:hover { background: var(--surface-hover); }
.vault-id {
font-family: var(--mono);
font-size: 0.875rem;
font-weight: 500;
color: var(--text);
}
.vault-region {
font-size: 0.8125rem;
color: var(--text-secondary);
}
.vault-meta {
margin-left: auto;
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.8125rem;
color: var(--text-secondary);
}
/* ── Dividers ── */
.divider {
border: none;
height: 1px;
background: var(--glass-border);
margin: 2rem 0;
}
/* ── Section spacing ── */
.section {
padding: 3rem 0;
}
.section-header {
margin-bottom: 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
/* ── Login page ── */
.login-wrapper {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 2rem;
}
.login-card {
width: 100%;
max-width: 400px;
padding: 2.5rem;
}
.login-header {
text-align: center;
margin-bottom: 2rem;
}
.login-header .brand {
font-family: var(--mono);
font-size: 1.125rem;
font-weight: 600;
letter-spacing: -0.02em;
margin-bottom: 0.5rem;
}
.login-header p {
color: var(--text-secondary);
font-size: 0.875rem;
}
.login-divider {
display: flex;
align-items: center;
gap: 1rem;
margin: 1.5rem 0;
color: var(--text-secondary);
font-size: 0.75rem;
}
.login-divider::before,
.login-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--glass-border);
}
.login-footer {
text-align: center;
margin-top: 1.5rem;
font-size: 0.8125rem;
color: var(--text-secondary);
}
.login-footer a {
color: var(--accent);
text-decoration: none;
}
.login-footer a:hover { text-decoration: underline; }
/* ── Checkout ── */
.checkout-wrapper {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 2rem;
}
.checkout-card {
width: 100%;
max-width: 480px;
padding: 2.5rem;
}
.price-display {
display: flex;
align-items: baseline;
gap: 0.375rem;
margin: 1rem 0;
}
.price-amount {
font-size: 2.5rem;
font-weight: 700;
letter-spacing: -0.03em;
color: var(--text);
}
.price-period {
font-size: 1rem;
color: var(--text-secondary);
}
.price-note {
font-size: 0.8125rem;
color: var(--text-secondary);
margin-bottom: 1.5rem;
}
.feature-list {
list-style: none;
margin: 1.5rem 0;
}
.feature-list li {
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0.375rem 0;
font-size: 0.875rem;
color: var(--text-secondary);
}
.feature-list .check {
color: var(--accent);
font-size: 0.75rem;
flex-shrink: 0;
}
/* ── Settings ── */
.settings-section {
padding: 1.5rem 0;
}
.settings-section + .settings-section {
border-top: 1px solid var(--glass-border);
}
.settings-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.settings-label {
font-size: 0.9375rem;
font-weight: 500;
}
.settings-desc {
font-size: 0.8125rem;
color: var(--text-secondary);
margin-top: 0.25rem;
}
/* ── Danger zone ── */
.danger-zone {
border: 1px solid rgba(239,68,68,0.15);
border-radius: var(--radius);
padding: 1.5rem;
margin-top: 1rem;
}
.danger-zone h3 {
color: var(--red);
margin-bottom: 0.5rem;
}
.danger-zone p {
font-size: 0.8125rem;
color: var(--text-secondary);
margin-bottom: 1rem;
}
/* ── Passkey button ── */
.btn-passkey {
background: linear-gradient(135deg, rgba(74,222,128,0.1) 0%, rgba(74,222,128,0.05) 100%);
color: var(--accent);
border: 1px solid rgba(74,222,128,0.2);
font-weight: 600;
}
.btn-passkey:hover {
background: linear-gradient(135deg, rgba(74,222,128,0.15) 0%, rgba(74,222,128,0.08) 100%);
border-color: rgba(74,222,128,0.35);
box-shadow: 0 4px 20px rgba(74,222,128,0.1);
transform: translateY(-1px);
}
.btn-passkey:active { transform: translateY(0); }
.passkey-icon {
width: 1.25rem;
height: 1.25rem;
}
/* ── Toast / notification ── */
.toast {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
padding: 0.875rem 1.25rem;
border-radius: var(--radius-sm);
font-size: 0.8125rem;
font-weight: 500;
transform: translateY(120%);
opacity: 0;
transition: all 0.35s var(--ease);
z-index: 200;
}
.toast.show {
transform: translateY(0);
opacity: 1;
}
.toast.success {
background: var(--accent-dim);
color: var(--accent);
border: 1px solid rgba(74,222,128,0.2);
}
.toast.error {
background: var(--red-dim);
color: var(--red);
border: 1px solid rgba(239,68,68,0.2);
}
/* ── Skeleton loading ── */
.skeleton {
background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s ease-in-out infinite;
border-radius: var(--radius-xs);
}
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* ── Responsive ── */
@media (max-width: 640px) {
.container { padding: 0 1rem; }
.login-card, .checkout-card { padding: 1.75rem; }
.region-grid { grid-template-columns: 1fr; }
.vault-row { flex-wrap: wrap; }
.vault-meta { margin-left: 0; width: 100%; justify-content: flex-start; }
.settings-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.topbar-nav { gap: 0; }
}
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }
/* ── Selection ── */
::selection { background: var(--accent-dim); color: var(--text); }
/* ── Focus management ── */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ── Transitions for page content ── */
.fade-in {
animation: fadeIn 0.4s var(--ease-out) both;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in-delay-1 { animation-delay: 0.05s; }
.fade-in-delay-2 { animation-delay: 0.1s; }
.fade-in-delay-3 { animation-delay: 0.15s; }