/* Sign in, sign up and the other signed-out screens.
   Left: one quiet form. Right: one loud forest panel with the product in it. */

.gv-auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); background: var(--bg); }
.gv-auth-side { display: flex; flex-direction: column; min-height: 100dvh; padding: 28px clamp(24px, 4vw, 56px); }
.gv-auth-top { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.gv-auth-logo img { height: 21px; width: auto; }
.gv-auth-top .gv-small a { color: var(--ink); font-weight: 500; }
.gv-auth-main { flex: 1; display: grid; align-content: center; justify-items: center; padding: 40px 0; }
.gv-auth-box { width: min(380px, 100%); }
.gv-auth-box .gv-h1 { font-size: 30px; letter-spacing: -0.034em; }
.gv-auth-box .gv-lead { margin-top: 8px; font-size: var(--t-15); }
.gv-auth-body { margin-top: 28px; display: grid; gap: 16px; }
.gv-auth-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: var(--t-12); color: var(--ink-3); }
.gv-auth-foot a:hover { color: var(--ink); }
.gv-auth-alt { text-align: center; font-size: var(--t-13); color: var(--ink-3); margin-top: 4px; }
.gv-auth-alt a { color: var(--ink); font-weight: 500; }

.gv-or { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: var(--t-12); }
.gv-or::before, .gv-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* Google's own button sits in a frame of ours so it lines up with the fields. */
.gv-google { height: 44px; display: grid; place-items: center; }
.gv-google > div { width: 100%; display: grid; place-items: center; }
.gv-lastused-wrap { position: relative; }
.gv-lastused { position: absolute; top: -9px; right: 16px; z-index: 1; height: 19px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--forest); color: var(--ink-inv); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; pointer-events: none; box-shadow: 0 0 0 2px var(--bg); }

/* a state that replaces the form: sent, verified, joined */
.gv-auth-state { display: grid; gap: 10px; }
.gv-auth-tick { width: 44px; height: 44px; border-radius: 14px; background: var(--wash-mint); color: var(--forest); display: grid; place-items: center; margin-bottom: 8px; }

/* ---------- the art panel ---------- */
.gv-art {
  position: relative; margin: 12px; border-radius: var(--r-24); overflow: hidden; color: var(--ink-inv); isolation: isolate;
  background:
    radial-gradient(85% 65% at 92% 4%, #32604F 0%, rgba(50, 96, 79, 0) 62%),
    radial-gradient(70% 55% at 0% 100%, #142A24 0%, rgba(20, 42, 36, 0) 70%),
    var(--forest);
  min-height: calc(100dvh - 24px);
}
/* grain: static, on the art only */
.gv-art::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.32; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gv-art-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.gv-art-path path { fill: none; stroke: var(--mint); stroke-width: 1.4; stroke-linecap: round; opacity: 0.34; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: gv-draw 2200ms var(--ease) 200ms forwards; }
.gv-art-path circle { fill: var(--forest); stroke: var(--mint); stroke-width: 1.4; opacity: 0; animation: gv-fade 600ms var(--ease) forwards; }
@keyframes gv-draw { to { stroke-dashoffset: 0; } }

.gv-art-copy { position: relative; z-index: 2; padding: clamp(28px, 3.4vw, 48px); max-width: 520px; }
.gv-art-copy h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -0.034em; font-weight: 500; text-wrap: balance; }
.gv-art-copy p { margin-top: 14px; font-size: var(--t-15); line-height: 1.5; color: rgba(244, 242, 234, 0.72); max-width: 40ch; }

.gv-art-stage { position: absolute; z-index: 1; right: clamp(24px, 3vw, 40px); bottom: -34px; width: min(540px, calc(100% - 150px)); }
.gv-mock { background: var(--surface); color: var(--ink); border-radius: var(--r-18); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 40px 70px -30px rgba(6, 18, 14, 0.7), 0 6px 18px rgba(6, 18, 14, 0.22); animation: gv-rise 900ms var(--ease) both; }
.gv-mock-list { padding: 6px 0 4px; animation-delay: 250ms; }
.gv-mock-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.gv-mock-head b { font-size: var(--t-15); font-weight: 500; letter-spacing: -0.012em; }
.gv-mock-pills { display: flex; gap: 6px; }
.gv-mock-pills span { height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-12); color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.gv-mock-pills span.is-on { background: var(--bg-sunken); color: var(--ink); font-weight: 500; }
.gv-mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; }
.gv-mock-row + .gv-mock-row { border-top: 1px solid var(--line); }
.gv-mock-row .gv-row-title { font-size: var(--t-14); }
.gv-mock-row .gv-row-sub { font-size: var(--t-12); }

.gv-mock-live { position: absolute; left: -92px; top: -52px; width: 292px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; animation-delay: 650ms; }
.gv-mock-live .gv-mock-tick { width: 38px; height: 38px; border-radius: 12px; background: var(--forest); color: var(--mint); display: grid; place-items: center; flex: none; }
.gv-mock-live b { display: block; font-size: var(--t-14); font-weight: 500; letter-spacing: -0.01em; }
.gv-mock-live span { font-size: var(--t-12); color: var(--ink-3); }

.gv-mock-note { position: absolute; right: -14px; bottom: 74px; width: 304px; padding: 14px 16px; animation-delay: 950ms; }
.gv-mock-note small { display: flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--ink-3); margin-bottom: 6px; }
.gv-mock-note p { font-size: var(--t-13); line-height: 1.45; color: var(--ink-2); }

.gv-art-copy small { display: block; margin-top: 14px; font-size: var(--t-12); color: rgba(244, 242, 234, 0.44); }

@media (max-width: 1020px) {
  .gv-auth { grid-template-columns: 1fr; }
  .gv-art { display: none; }
}
@media (max-height: 720px) {
  .gv-mock-note { display: none; }
}

/* ---------- opening a workspace ---------- */
.gv-opening { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; animation: gv-fade var(--d-3) var(--ease); }
.gv-opening.is-leaving { animation: gv-opening-out var(--d-4) var(--ease) forwards; }
@keyframes gv-opening-out { to { opacity: 0; transform: scale(1.015); } }
.gv-opening-box { display: grid; justify-items: center; gap: 18px; }
.gv-opening-mark { width: 52px; height: 52px; position: relative; }
.gv-opening-mark img { width: 52px; height: 52px; position: relative; z-index: 1; border-radius: 12px; }
.gv-opening-mark::after { content: ""; position: absolute; inset: -9px; border-radius: 20px; border: 1.5px solid var(--sage); opacity: 0; animation: gv-halo 1500ms var(--ease) infinite; }
@keyframes gv-halo { 0% { opacity: 0.55; transform: scale(0.86); } 100% { opacity: 0; transform: scale(1.12); } }
.gv-opening-text { font-size: var(--t-15); color: var(--ink-2); }
.gv-opening-text b { color: var(--ink); font-weight: 500; }

/* ---------- workspace chooser ---------- */
.gv-ws { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.gv-ws-top { display: flex; align-items: center; justify-content: space-between; padding: 28px clamp(24px, 4vw, 56px) 0; }
.gv-ws-main { display: grid; place-items: center; padding: 40px 24px 80px; }
.gv-ws-box { width: min(460px, 100%); }
.gv-ws-list { margin-top: 26px; display: grid; gap: 8px; }
.gv-ws-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-14); background: var(--surface); border: 1px solid var(--line-2); transition: border-color var(--d-2) var(--ease), transform var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-ws-item:hover { border-color: var(--forest); transform: translateY(-1px); }
.gv-ws-item:hover .gv-ws-go { color: var(--forest); transform: translateX(2px); }
.gv-ws-go { color: var(--ink-4); transition: transform var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.gv-ws-new { margin-top: 10px; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: var(--r-14); border: 1px dashed var(--line-3); color: var(--ink-2); font-weight: 500; transition: border-color var(--d-2) var(--ease), color var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-ws-new:hover { border-color: var(--forest); color: var(--forest); background: var(--surface); }
.gv-ws-new > span:first-child { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--wash); }
.gv-ws-top .gv-cluster { flex-wrap: nowrap; min-width: 0; }
@media (max-width: 520px) { .gv-ws-top .gv-cluster .gv-small { display: none; } }
