/* Sign in and password reset. The left side shows a room from above: round
   tables, one company leader at each (Terracotta) and the professionals around
   them. A client's own sign-in page wears the client's colour instead. */

body { background: var(--white); }
.page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }

.story {
  --plan-line: rgba(248, 246, 243, 0.22);
  --plan-seat: rgba(248, 246, 243, 0.86);
  --plan-lead: var(--terracotta);
  --plan-text: rgba(248, 246, 243, 0.55);
  background: var(--ink); color: var(--bone);
  padding: 40px 56px 40px; display: flex; flex-direction: column; gap: 32px; min-width: 0;
}
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.story-top .logo { height: 22px; width: auto; display: block; }
.story h1 { font-size: 52px; line-height: 56px; letter-spacing: -0.02em; max-width: 560px; color: var(--bone); }
.story h1 em { color: var(--terracotta); }
.plan { flex: 1; min-height: 0; display: flex; align-items: center; }
.plan svg { width: 100%; max-width: 620px; height: auto; display: block; }
.plan .plan-row { display: none; }
.plan .room { fill: none; stroke: var(--plan-line); stroke-width: 1.5; }
.plan .door { fill: none; stroke: var(--plan-line); stroke-width: 1; stroke-dasharray: 3 4; }
.plan .table { fill: rgba(248, 246, 243, 0.06); stroke: var(--plan-line); stroke-width: 1.25; }
.plan .seat { fill: var(--plan-seat); }
.plan .lead { fill: var(--plan-lead); }
.plan text { fill: var(--plan-text); font-family: var(--sans); font-size: 12px; font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--plan-text); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--plan-seat); }
.legend i.lead { background: var(--plan-lead); }

/* A client's sign-in page: the client's colour and name, WeiTA in the background. */
.who { display: none; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.who .tile { width: 36px; height: 36px; border-radius: 9px; background: var(--on-client); color: var(--client); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
body.is-client .story {
  --plan-line: color-mix(in srgb, var(--on-client) 28%, transparent);
  --plan-seat: color-mix(in srgb, var(--on-client) 50%, transparent);
  --plan-lead: var(--on-client);
  --plan-text: color-mix(in srgb, var(--on-client) 70%, transparent);
  background: var(--client); color: var(--on-client);
}
body.is-client .story h1 { color: var(--on-client); }
body.is-client .story .logo { display: none; }
body.is-client .who { display: flex; }
body.is-client .plan .table { fill: color-mix(in srgb, var(--on-client) 8%, transparent); }
body.is-client .panel .btn-main { background: var(--client-button); color: var(--client-button-text); }
.curated { display: none; align-items: center; gap: 8px; justify-content: center; margin-top: 8px; }
.curated img { height: 14px; width: auto; }
body.is-client .curated { display: flex; }

/* The form side */
.side { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.panel { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 20px; }
.panel h2 { font-size: 34px; line-height: 40px; }
.panel .lede { margin: -8px 0 0; color: var(--light-ink); font-size: 15px; line-height: 22px; }
.panel .btn { width: 100%; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.row { display: flex; justify-content: space-between; align-items: center; }

/* A password with Show and Hide */
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border: none; border-radius: 999px; background: transparent; color: var(--burnt-stone);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.eye:hover { background: var(--bone); color: var(--ink); }

/* The six-digit code: six boxes, dots until Show is pressed. One real input
   sits on top, so pasting and the phone's code suggestions still work. */
.code-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 20px; font-weight: 600; }
.code-head .link-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--burnt-stone); }
.code-head .link-btn:hover { color: var(--ink); }
.otp { position: relative; }
.otp input {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: none; background: transparent;
  color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 3em; outline: none;
}
.otp input::selection { background: transparent; }
.otp-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; pointer-events: none; }
.otp-slots i {
  height: 60px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--stone);
  display: flex; align-items: center; justify-content: center; font-style: normal;
  font-family: var(--sans); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
}
.otp-slots i.dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.otp-slots i.on { box-shadow: inset 0 0 0 2px var(--ink); }
.otp-slots i.on:empty::after { content: ''; width: 2px; height: 26px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.otp[aria-invalid="true"] .otp-slots i { box-shadow: inset 0 0 0 1.5px var(--terracotta); }
@keyframes blink { 50% { opacity: 0; } }

.qr { align-self: center; width: 200px; height: 200px; padding: 12px; background: var(--white); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.qr img { width: 100%; height: 100%; display: block; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details code { font-size: 13px; word-break: break-all; background: var(--bone); padding: 2px 6px; border-radius: 6px; }
.done-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--bone); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 980px) {
  .story { padding: 32px 36px; }
  .story h1 { font-size: 42px; line-height: 46px; }
}

@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; min-height: 0; }
  .story { padding: 20px 20px 24px; gap: 20px; }
  .story h1 { font-size: 34px; line-height: 38px; }
  .plan .plan-full { display: none; }
  .plan .plan-row { display: block; }
  .legend { display: none; }
  .side { align-items: flex-start; padding: 28px 20px 48px; }
  .panel h2 { font-size: 28px; line-height: 34px; }
  .otp-slots { gap: 6px; }
  .otp-slots i { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .otp-slots i.on:empty::after { animation: none; }
}
