/* The sign-in and goodbye pages (templates/index.html, page 'login' / 'bye'): the door, the studio panel and
   the in-app browser card. Their own small file, so the sign-in page paints without the room's styles;
   the room and the lobby use static/room.css (which keeps its own copy of the in-app card). */
body.door-page { min-height: 100svh; overflow-x: hidden; }
.door { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; isolation: isolate; }
.door-bg { position: fixed; inset: 0; z-index: -2; }
.door-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, color-mix(in oklab, var(--bg) 70%, transparent) 0%, color-mix(in oklab, var(--bg) 22%, transparent) 48%, transparent 72%); }
.door-top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); }
.door-top .logo { font-size: 21px; }
.door-top .theme-btn { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* the theme switch's tooltip (the room's header tooltips, room.css) */
.door-top [data-tip] { position: relative; }
.door-top [data-tip]:hover::after, .door-top [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); z-index: 90; height: 28px; display: flex; align-items: center;
  padding: 0 11px; border-radius: 9px; background: var(--toast-bg); color: var(--toast-ink); font: 500 12px/1 var(--font); letter-spacing: 0; white-space: nowrap; pointer-events: none;
  animation: meets-fade var(--d1) var(--ease); }
.door-main { width: 100%; max-width: max(1400px, var(--page-max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 468px) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 6vw, 110px); padding: 8px clamp(20px, 5vw, 64px) 56px; }
.door-card { display: grid; gap: 0; padding: clamp(28px, 3.6vw, 44px); border-radius: 34px; background: var(--glass);
  border: 1px solid var(--glass-line); backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5); box-shadow: var(--shadow-3);
  animation: meets-rise 900ms var(--ease) both; }
.door-card h1 { margin: 0; font: 300 clamp(42px, 4.5vw, 62px)/1 var(--font); letter-spacing: -0.04em; }
/* the silk's colours, deep enough to read on the glass */
.door-card h1 em { font-style: normal; color: var(--violet-text); }
/* a meeting link's heading can carry the meeting's title (public meetings): smaller, and long words wrap */
.door-card h1.meet-h { font-size: clamp(36px, 3.6vw, 50px); line-height: 1.05; overflow-wrap: anywhere; text-wrap: balance; }
.door-card .lede { margin: 16px 0 28px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 56px; padding: 0 24px; border-radius: var(--r-pill);
  background: var(--toast-bg); color: var(--toast-ink); font: 500 15.5px/1 var(--font); letter-spacing: -0.01em;
  box-shadow: var(--shadow-2); transition: transform var(--d2) var(--ease), box-shadow var(--d2); }
.gbtn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-3); }
.gbtn:disabled { cursor: default; opacity: 0.8; }
.gbtn .g { display: grid; place-items: center; flex: none; }
.gbtn .g svg { width: 20px; height: 20px; }
#auth-message { margin-top: 12px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
#auth-message:empty { display: none; }
#auth-message.error-text { color: var(--rec-text); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 12.5px; color: var(--ink-4); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.guestf { display: grid; gap: 12px; }
.guestf .label { display: grid; gap: 6px; }
.guestf .label[hidden] { display: none; }   /* beats the grid rule above so a hidden row (the code field, until a code is sent) stays hidden */
.guestf .opt { font-weight: 400; color: var(--ink-4); }
.guestf .btn { width: 100%; }
/* buttons that sit on the glass card read as buttons, not empty fields */
.door-card .btn-soft { background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.door-card .btn-soft:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line-3); }
.guestnote { margin: -12px 0 20px; padding: 10px 14px; border-radius: 14px; background: var(--violet-soft); font-size: 13.5px; color: var(--ink-2); }
.bye-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bye-acts .btn { flex: 1; }
.bye-sent { margin: 0; display: block; align-content: center; padding: 14px 18px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.bye-sent b { font-weight: 600; color: var(--ink); }
.inapp { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: var(--bg); overflow-y: auto; }
.inapp[hidden] { display: none; }
html.inapp-open, html.inapp-open body { overflow: hidden; }
.inapp-card { width: min(420px, 100%); display: grid; gap: 12px; padding: 28px 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-3); text-align: center; }
.inapp-card h2 { margin: 0 0 4px; font: 500 24px/1.2 var(--font); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.inapp-card p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.inapp-card .btn { width: 100%; justify-content: center; }
.inapp-card .inapp-hint { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.inapp-card .field { text-align: center; font-size: 13px; }
.inapp-stay { margin-top: 4px; font-size: 13px; color: var(--ink-4); text-decoration: underline; text-underline-offset: 3px; }
.door-foot { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--ink-3); }

/* the studio: every voice on its own track, drawn in code */
.studio { margin: 0; justify-self: end; width: min(580px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 32px; background: var(--glass);
  border: 1px solid var(--glass-line); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: var(--shadow-3);
  animation: meets-rise 1100ms 160ms var(--ease) both; }
.st-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px; }
.st-head b { font-weight: 500; font-size: 14.5px; letter-spacing: -0.02em; }
.st-head .sp { flex: 1; }
.st-head .faces { display: flex; }
.st-head .faces img { width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface); }
.lanes { display: grid; gap: 7px; }
.lane { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 12px; height: 50px; padding: 0 14px 0 8px; border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 58%, transparent); transition: background-color 600ms var(--ease), box-shadow 600ms var(--ease); }
.lane .who { display: flex; align-items: center; gap: 9px; font: 500 13px/1 var(--font); white-space: nowrap; color: var(--ink-2); }
.lane .who img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px color-mix(in oklab, var(--tc) 30%, transparent); transition: box-shadow 600ms var(--ease); }
.lane .wave { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.lane .wave b { flex: none; width: 3px; height: max(3px, calc(var(--h) * 100%)); border-radius: 3px; background: color-mix(in oklab, var(--tc) 28%, transparent); transform-origin: center; transition: background-color 500ms; }
.lane.on { background: var(--surface); box-shadow: var(--shadow-1); }
.lane.on .who { color: var(--ink); }
.lane.on .who img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--tc); }
.lane.on .wave b { background: var(--tc); }
.lane.on .wave b.w { animation: wv 820ms ease-in-out infinite alternate; animation-delay: calc(var(--i) * -71ms); }
@keyframes wv { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
.st-cap { min-height: 76px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.st-cap .t { font-family: var(--mono); font-size: 12px; color: var(--ink-4); margin-right: 8px; }
.st-cap b { font-weight: 600; color: var(--tc); margin-right: 6px; }
.st-cap .lg { display: inline-grid; place-items: center; height: 18px; padding: 0 5px; margin-right: 6px; border-radius: 5px; font: 600 10px/1 var(--mono); color: var(--violet-text); background: var(--violet-soft); vertical-align: 1px; }
.st-cap .tr { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.st-cap.swap { animation: capin 520ms var(--ease); }
@keyframes capin { from { opacity: 0; transform: translateY(6px); } }
.st-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 4px 0; }
.st-note { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.st-foot .chip { background: color-mix(in oklab, var(--surface) 70%, transparent); }

/* laptops with short screens (1280x720): the guest card fits above the fold */
@media (max-height: 760px) and (min-width: 981px) {
  .door-main { align-items: start; }
  .door-card { padding: 30px 36px; }
  .door-card h1 { font-size: 46px; }
  .door-card .lede { margin: 12px 0 20px; }
}
@media (max-width: 980px) {
  .door-main { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; padding-top: 0; }
  .door-card { width: min(468px, 100%); }
  .studio { justify-self: center; width: min(468px, 100%); }
  .lane { grid-template-columns: 96px minmax(0, 1fr); height: 44px; }
  .lane .wave b:nth-child(2n) { display: none; }
  .door-bg::after { background: color-mix(in oklab, var(--bg) 46%, transparent); }
}
