/* Sign-in: the passkey and credentials labs. */

/* Both labs have the same seven rows (title, intro, status, card, log,
   buttons, note). A subgrid lines each row up across the two panels, so the
   cards, logs and buttons sit side by side whatever the text lengths. */
.signin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  padding-bottom: 40px;
}

.lab {
  grid-row: span 7;
  grid-template-rows: subgrid;
  row-gap: 14px;
}

.lab-title {
  font-size: 1.5rem;
}

.lab .lab-step {
  font-weight: 600;
  color: var(--ink);
}

.lab-stage {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  min-height: 180px;
  padding: 16px;
  border-radius: 12px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 14px 14px;
}

.lab-stage > * {
  width: 100%;
  max-width: 440px;
}

.lab-note {
  font-size: 0.86rem;
}

.more-modes {
  display: grid;
  gap: 12px;
  max-width: 68ch;
  padding: 24px 0 72px;
  border-top: 0;
}

.more-modes h2 {
  font-size: 1.6rem;
}

/* The agent-info block mcp-consent renders inside its shell, so the passkey
   card matches the credentials card. */
.pk-agent-info {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pk-agent-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dbeafe;
  color: #2563eb;
}

.pk-agent-icon svg {
  width: 18px;
  height: 18px;
}

.pk-terms {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .signin-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .lab {
    grid-row: auto;
    grid-template-rows: none;
  }
}
