/* gentika platform — the site's light design language, condensed.
   Tokens mirror gentika_landing_v3/home.css body.home-v3 (the design system
   of record): warm white sampled from the film's room, dark ink, Geist,
   pill buttons, white cards with the warm-brown lift shadow. If the landing
   scale moves, move these with it. */

:root {
  --bg: #f8f6f3;
  --bg-card: #ffffff;
  --ink: #17171a;
  --ink-2: rgba(23, 23, 26, 0.66);
  --ink-3: rgba(23, 23, 26, 0.42);
  --line: rgba(23, 23, 26, 0.10);
  --line-2: rgba(23, 23, 26, 0.20);
  --accent: #17171a;
  --accent-ink: #ffffff;
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --r: 16px;
  --r-lg: 24px;
  --card-lift: 0 22px 48px -32px rgba(60, 30, 10, 0.30),
               0 3px 10px -6px rgba(60, 30, 10, 0.07);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ink); }
h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
h2 { font-weight: 600; letter-spacing: -0.01em; }

.kicker {
  font-size: 11.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--ink-3); margin: 0 0 10px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 0.95rem var(--font); color: var(--accent-ink);
  background: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 11px 22px; cursor: pointer;
  text-decoration: none; width: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn svg { width: 15px; height: 15px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2); width: auto; padding: 8px 16px; font-size: 0.85rem;
}
.btn-google {
  background: var(--bg-card); color: var(--ink); border-color: var(--line-2);
}
.btn-google svg { width: 17px; height: 17px; }
.auth-or {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--ink-3); font-size: 0.8rem;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- auth split layout (modeled on the fleet backoffice login) ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 100vh; min-height: 100svh; }
.auth-shell--single { grid-template-columns: 1fr; }
.auth-side {
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 44px;
}
.auth-side-body h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin: 0 0 12px; }
.auth-side-body p { color: rgba(255, 255, 255, 0.62); line-height: 1.55; max-width: 40ch; margin: 0; }
.auth-side-foot { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; }
.lockup { height: 26px; width: auto; display: block; }
.lockup-lg { height: 30px; }

.auth-form-side { display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  width: min(400px, 100%);
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--card-lift);
  padding: 34px 32px;
}
.auth-card--wide { width: min(460px, 100%); }
.auth-sub { color: var(--ink-2); line-height: 1.55; margin: 0 0 20px; font-size: 0.93rem; }
.auth-sub strong { color: var(--ink); }
.auth-foot { margin: 18px 0 0; font-size: 0.85rem; color: var(--ink-2); }
.auth-foot a { color: var(--ink); }

label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; }
input, select {
  display: block; width: 100%; margin-top: 6px;
  font: 400 0.95rem var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 14px; outline: none;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1.5 6 6.5 11 1.5" fill="none" stroke="%2317171a" stroke-width="1.6" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center;
}
input:focus, select:focus { border-color: var(--ink); }
form .btn { margin-top: 4px; }

.alert { border-radius: 12px; padding: 10px 14px; font-size: 0.87rem; margin: 0 0 16px; }
.alert.err { background: rgba(178, 34, 20, 0.07); color: #8f1d10; border: 1px solid rgba(178, 34, 20, 0.18); }
.dev-link {
  background: rgba(23, 23, 26, 0.05); border: 1px dashed var(--line-2);
  border-radius: 12px; padding: 10px 14px; font-size: 0.87rem;
}

/* ---------- workspace home ---------- */
.page { min-height: 100vh; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-email { color: var(--ink-2); font-size: 0.87rem; }
.topbar form { margin: 0; }

.wrap { max-width: 880px; margin: 0 auto; padding: 48px 24px 64px; }
.org-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px; margin-top: 22px;
}
.org-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--card-lift);
  padding: 20px 22px; text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
a.org-card:hover { transform: translateY(-2px); }
.org-card--pending { opacity: 0.82; }
.card-name { font-weight: 600; font-size: 1.02rem; }
.card-role { color: var(--ink-3); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card-go { margin-top: 10px; font-size: 0.9rem; font-weight: 500; }
.card-pending { margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); line-height: 1.45; }
.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: 999px; padding: 2px 8px; vertical-align: 2px; margin-left: 6px;
}
.badge-demo { background: rgba(23, 23, 26, 0.08); color: var(--ink-2); }
.empty {
  background: var(--bg-card); border: 1px dashed var(--line-2);
  border-radius: var(--r); padding: 26px; color: var(--ink-2); line-height: 1.5;
}
.home-foot { margin-top: 36px; color: var(--ink-2); font-size: 0.9rem; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card { padding: 28px 22px; }
  .topbar { padding: 14px 18px; }
  .topbar-email { display: none; }
}

/* a button that reads as a link (the forgot-password path) */
.auth-alt { margin: 6px 0 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit;
  color: var(--ink); text-decoration: underline; cursor: pointer; }
