/* home.marclindner.com — liquid glass, minimal. Dark by default, light with the device. */
:root {
  --bg: #070a14;
  --text: #eef1ff;
  --muted: #9aa3c0;
  --faint: #6b7392;
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .10);
  --edge: rgba(255, 255, 255, .16);
  --highlight: rgba(255, 255, 255, .28);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --accent: #7c8cff;
  --accent-2: #b38cff;
  --danger: #ff7a7a;
  --blob1: #3b4bff; --blob2: #9b5cff; --blob3: #1fb6a6;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef1f8;
    --text: #141a33;
    --muted: #5b6482;
    --faint: #8a93ad;
    --glass: rgba(255, 255, 255, .45);
    --glass-strong: rgba(255, 255, 255, .65);
    --edge: rgba(255, 255, 255, .8);
    --highlight: rgba(255, 255, 255, .95);
    --shadow: 0 30px 70px -35px rgba(40, 50, 110, .35);
    --blob1: #8fa2ff; --blob2: #d1a8ff; --blob3: #8fe3d6;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 Geist, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh;
}
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Soft moving colour behind the glass. */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.b1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -20vmax; background: var(--blob1); }
.b2 { width: 45vmax; height: 45vmax; right: -15vmax; top: 10vmax; background: var(--blob2); animation-delay: -8s; }
.b3 { width: 40vmax; height: 40vmax; left: 20vmax; bottom: -25vmax; background: var(--blob3); opacity: .35; animation-delay: -16s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* Glass: blur + saturation, a hairline edge and a lit top border. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
}

.wrap { position: relative; z-index: 1; width: min(980px, 100%); margin: 0 auto; padding: 72px 16px 48px; }
.page-login .wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding-top: 24px; }

h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.hello { margin: 24px 4px 28px; }

/* Login card */
.login { width: min(400px, 100%); border-radius: 30px; padding: 34px 28px 26px; text-align: center; }
.login .muted { margin: 0 0 24px; }
.brand { display: grid; place-items: center; margin-bottom: 18px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.big-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--edge); }

.btn-primary, .btn-glass, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary {
  width: 100%; border: 0; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px -14px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-glass { border: 1px solid var(--edge); background: var(--glass-strong); color: var(--text); }
.btn-glass:hover { background: var(--glass); }
.btn-quiet { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-weight: 500; }
.btn-quiet:hover { color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.link-quiet { display: inline-block; margin-top: 14px; color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--text); }

.pw { margin-top: 18px; text-align: left; }
.pw summary { list-style: none; cursor: pointer; color: var(--muted); text-align: center; padding: 6px; }
.pw summary::-webkit-details-marker { display: none; }
.pw summary:hover { color: var(--text); }
.stack { display: grid; gap: 10px; margin-top: 12px; }
.narrow { max-width: 360px; }
.input {
  width: 100%; min-height: 46px; padding: 0 16px; border-radius: 14px; font: inherit; color: var(--text);
  background: var(--glass); border: 1px solid var(--edge); outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
select.input { padding-right: 34px; }
.error { color: var(--danger); margin: 4px 0 0; font-size: 14px; }
.note { border-radius: 18px; padding: 12px 16px; margin: 0 0 16px; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge); color: var(--muted); }

/* Site cards */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.site-card {
  position: relative; display: grid; gap: 6px; padding: 28px; min-height: 210px; align-content: end;
  border-radius: 30px; text-decoration: none; transition: transform .25s ease, background .25s ease;
}
.site-card:hover, .site-card:focus-visible { transform: translateY(-4px); background: var(--glass-strong); outline: none; }
.site-icon {
  position: absolute; top: 26px; left: 26px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 12px 28px -12px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.site-card + .site-card .site-icon { background: linear-gradient(135deg, #22c3a6, #5b8cff); box-shadow: 0 12px 28px -12px #22c3a6, inset 0 1px 0 rgba(255, 255, 255, .45); }
.site-name { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.site-sub { color: var(--muted); }
.site-go { position: absolute; top: 30px; right: 28px; color: var(--muted); transition: transform .25s ease, color .25s ease; }
.site-card:hover .site-go { transform: translateX(4px); color: var(--text); }

/* Account menu, top right */
.me { position: fixed; top: 16px; right: 16px; z-index: 5; border-radius: 999px; }
.me summary { list-style: none; cursor: pointer; padding: 5px; }
.me summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 600; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.me-menu { position: absolute; right: 0; top: 56px; min-width: 220px; padding: 8px; border-radius: 20px; display: grid; }
.me-name { padding: 8px 12px; color: var(--muted); font-size: 13px; }
.me-menu a, .me-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.me-menu a:hover, .me-menu button:hover { background: var(--glass-strong); }

/* Panels (account, users) */
.panel { border-radius: 26px; padding: 22px 24px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--edge); }
.rows li:first-child { border-top: 0; }
.rows form { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; }
.inline-form .input { width: auto; min-width: 160px; flex: 1 1 160px; }
.field { display: grid; gap: 4px; flex: 1 1 160px; }
.field .input { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; color: var(--muted); }

@media (max-width: 600px) {
  .wrap { padding-top: 64px; }
  h1 { font-size: 26px; }
  .site-card { min-height: 180px; padding: 24px; }
}
