/* KubeEyes accounts — same Ocean palette and fonts as kubeeyes.com. Dark first, light via media query. */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark light;
  --bg: #0d1628; --bg-raised: #131f37; --bg-sunken: #0a1222; --bg-hover: #192842;
  --fg: #e3eaf7; --muted: #8e9cb6; --border: #22324f; --accent: #4d9bff; --accent-strong: #1a6fe0;
  --danger: #f87171; --danger-strong: #dc2626; --ok: #34d399; --glow: rgb(77 155 255 / 0.16);
  --shadow: 0 24px 60px rgb(0 0 0 / 0.5); --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f8fd; --bg-raised: #ffffff; --bg-sunken: #edf2f9; --bg-hover: #e7eef8;
    --fg: #0f1b33; --muted: #4f5e77; --border: #dbe4f1; --accent: #1764cc; --danger: #b91c1c; --ok: #047857;
    --glow: rgb(26 111 224 / 0.1); --shadow: 0 24px 60px rgb(14 35 82 / 0.15);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: radial-gradient(ellipse at 50% -10%, var(--glow), transparent 60%), var(--bg); background-attachment: fixed;
  color: var(--fg); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
p { margin: 0; }
.lede, .muted { color: var(--muted); }
.muted { overflow-wrap: anywhere; }
.small { font-size: 13px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }

/* ── Shell: header, centred column, footer ── */
.shell { min-height: 100vh; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.shell.wide { max-width: 1040px; }
.shell > main { flex: 1; display: grid; gap: 16px; align-content: center; padding: 8px 0 32px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand .eyes { color: var(--accent); }
.top-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.top-link:hover { color: var(--fg); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 24px 0 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

.card {
  padding: 28px; display: grid; gap: 16px; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: rise 0.35s ease-out both;
}
/* Slide only, no fade: content must stay visible even where animations don't run (hidden tabs, previews). */
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }

/* ── Buttons ── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-sunken);
  color: var(--fg); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent-strong); border-color: transparent; color: #fff; }
.btn-primary:hover { background: #1966d6; box-shadow: 0 8px 22px rgb(26 111 224 / 0.3); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f8faff; box-shadow: 0 6px 18px rgb(0 0 0 / 0.15); }
.btn-google.loading { pointer-events: none; opacity: 0.85; }
.btn-google.loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-danger { background: var(--danger-strong); border-color: transparent; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
form { margin: 0; }
.danger { color: var(--danger); }

/* ── Sign-in: product showcase + card ── */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.showcase { display: grid; gap: 16px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.showcase h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.perks svg { color: var(--ok); flex: none; }
.shot { margin: 8px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #0d1628; }
.shot img { display: block; width: 100%; height: auto; }
.auth-card { text-align: left; }
.app-icon { width: 64px; height: 64px; filter: drop-shadow(0 10px 24px rgb(26 111 224 / 0.35)); }
.notice { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); font-size: 14px; }

/* ── Avatars and the account menu ── */
.avatar { display: block; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.lg { width: 72px; height: 72px; }
.avatar.sm { width: 32px; height: 32px; }
.initials { display: grid; place-items: center; background: var(--accent-strong); color: #fff; font-weight: 700; }
.initials.lg { font-size: 24px; }
.initials.sm { font-size: 13px; }
.avatar-wrap { position: relative; display: block; flex: none; }
.avatar-wrap.lg { width: 72px; height: 72px; }
.avatar-wrap.sm { width: 32px; height: 32px; }
.avatar-wrap .photo { position: absolute; inset: 0; }

.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-raised); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--bg-hover); }
.user-name { font-size: 14px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 240px; padding: 8px; display: grid; gap: 2px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.menu-who { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 14px; }
.menu-who span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; font: 14px var(--font); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg-hover); }

/* ── Account ── */
.who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.who > div { min-width: 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sunken); min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head img { flex: none; }
.sha summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.sha .cmd { margin-top: 8px; }
.notes { padding: 16px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--border); display: grid; gap: 8px; }
.notes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.notes a { font-size: 14px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.steps li { display: grid; gap: 6px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.cmd { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sunken); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 10px 12px; overflow-x: auto; white-space: nowrap; font: 13px/1.5 var(--mono); }
.cmd .copy { flex: none; width: auto; min-width: 84px; border: 0; border-left: 1px solid var(--border); border-radius: 0; }
.danger-zone { text-align: center; font-size: 13px; }

/* ── Delete and errors ── */
.removes { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.confirm-delete { display: grid; gap: 10px; }
.confirm-delete label { font-size: 14px; }
.confirm-delete input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-sunken); color: var(--fg); font: 15px var(--mono); letter-spacing: 0.08em; }
.error { text-align: center; justify-items: center; }
.error-icon { color: var(--accent); }

/* ── Small screens ── */
@media (max-width: 860px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .auth-card { order: -1; }
  .showcase .shot { display: none; }
}
@media (max-width: 480px) {
  .card { padding: 22px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .user-name { display: none; }
  .user-menu summary { padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
