/* ==========================================================================
   SurveyIQ — screen: sign in
   Two columns: a 380px form column on the left, a 600px value panel on the
   right. Below 860px the panel drops away and the form centres.
   ========================================================================== */

.signin {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

.signin__form-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 60px;
}

.signin__form {
  width: 380px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.signin__heading { display: flex; flex-direction: column; gap: 7px; }
.signin__title {
  font-size: var(--fs-27);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
}
.signin__sub {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  line-height: 1.55;
}

/* Two required fields, stacked. There are no third-party sign-in alternates:
   none of them were connected, and a button that only apologises is worse than
   no button. */
.signin__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signin__submit {
  height: 44px;
  margin-top: 2px;
  border-radius: var(--r-xs);
  font-size: var(--fs-14);
}

/* A build aid, so it is deliberately quiet and unboxed - it is not part of
   the product. */
.signin__devlink {
  font-size: var(--fs-12-5);
  color: var(--c-text-faint);
  border-top: 1px solid var(--c-track);
  padding-top: 14px;
}

.signin__legal {
  font-size: var(--fs-12-5);
  color: var(--c-text-muted);
  line-height: var(--lh-body);
  padding: 12px 14px;
  border: 1px solid var(--c-track);
  border-radius: var(--r-xl);
  background: var(--c-surface-2);
}

/* --- Right panel ---------------------------------------------------------- */

.signin__panel {
  width: 600px;
  flex: none;
  background: var(--c-surface-2);
  border-left: 1px solid var(--c-border-2);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.signin__pitch {
  font-size: var(--fs-22);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: 1.35;
}

.signin__sample {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-card);
  border-radius: var(--r-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--sh-card);
}
.signin__sample-title {
  font-size: var(--fs-17);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
}
.signin__sample-q { display: flex; flex-direction: column; gap: 6px; }
.signin__sample-label { font-size: var(--fs-13); font-weight: var(--fw-medium); }
.signin__stars { display: flex; gap: 6px; color: var(--c-accent); font-size: var(--fs-17); }
.signin__stars .is-empty { color: var(--c-swatch-dim); }
.signin__sample-area {
  height: 56px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 9px 11px;
  font-size: var(--fs-12-5);
  color: var(--c-placeholder);
}
.signin__sample-submit {
  width: 104px;
  height: 36px;
  border-radius: var(--r-xs);
  font-size: var(--fs-13);
}

.signin__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.signin__stat { display: flex; flex-direction: column; gap: 3px; }
.signin__stat-value { font-size: var(--fs-19); font-weight: var(--fw-semibold); }
.signin__stat-label { font-size: var(--fs-12); color: var(--c-text-muted); }

@media (max-width: 1000px) {
  .signin__panel { width: 440px; padding: 48px 36px; }
}

@media (max-width: 860px) {
  .signin__panel { display: none; }
  .signin__form-col { padding: 40px 24px; }
}

/* Switching between signing in and signing up. A button, not a link: it goes
   nowhere, it changes what this form is. */
.signin__switch {
  font-size: inherit;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.signin__switch:hover { color: var(--c-ink); }

/* --- Microsoft sign-in ----------------------------------------------------
   The employee path is the primary one, so it gets the filled button and the
   guest form gets the quiet one. Everything here reads from tokens.css.
   -------------------------------------------------------------------------- */

.signin__ms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.signin__ms-mark {
  width: 18px;
  height: 18px;
  flex: none;
}

/* What each route is for, so nobody has to guess which button is theirs. */
.signin__routes {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.signin__routes li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.signin__tick {
  color: var(--accent);
  font-weight: 600;
  flex: none;
}

/* --- Guest access ---------------------------------------------------------
   A disclosure, not a second column: guests are the exception here, and
   showing both forms at once asks every employee to work out which is theirs.
   -------------------------------------------------------------------------- */

.signin__guest {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.signin__guest-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}

/* The default triangle is replaced by the chevron below. */
.signin__guest-summary::-webkit-details-marker { display: none; }
.signin__guest-summary::marker { content: ""; }

.signin__guest-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}

.signin__guest-chevron {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  transition: transform 120ms ease;
}

.signin__guest[open] .signin__guest-chevron {
  transform: rotate(90deg);
}

.signin__guest .signin__fields {
  margin-top: 12px;
}

.signin__guest-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.signin__help {
  margin-top: 16px;
}
