/* identity-php: a bare starting point for the default screens (DESIGN.md D5). Optional. Restyle freely. */
.idn { display: flex; flex-direction: column; gap: 0.75rem; max-width: 24rem; }
.idn-title { font-weight: 600; margin: 0; }
.idn-hint, .idn-or { font-size: 0.875rem; opacity: 0.75; margin: 0; }
.idn-error { color: #b00020; margin: 0; min-height: 1em; }
.idn-form { display: flex; flex-direction: column; gap: 0.5rem; }
.idn-input { font: inherit; font-size: 16px; /* 16px stops iOS zooming in */ padding: 0.6rem; }
.idn-btn { font: inherit; padding: 0.7rem 1rem; min-height: 44px; cursor: pointer; }
.idn-choices { display: flex; gap: 0.5rem; }
.idn-number { flex: 1; font-size: 1.5rem; }
.idn-codetext { font-family: ui-monospace, Menlo, monospace; font-size: 1.1rem; letter-spacing: 0.05em; user-select: all; word-break: break-all; }
.idn-showcode .idn-form .idn-input { position: absolute; left: -9999px; } /* the code is shown above; fields are for password managers */
.idn-list { list-style: none; padding: 0; margin: 0; }
.idn-device { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; }
.idn-signout { position: fixed; top: 0.5rem; right: 0.5rem; z-index: 1000; }
.idn-qr svg { width: min(70vw, 16rem); height: auto; background: #fff; display: block; } /* QR codes need a light background */
/* Waiting for the browser's passkey window (withPasskeyWait) */
.idn-wait { display: flex; flex-direction: column; gap: 0.5rem; }
.idn-wait-line { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.idn-spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: idn-spin 0.8s linear infinite; flex: none; }
@keyframes idn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .idn-spinner { animation-duration: 2.4s; } }
/* Classrooms (client/classroom.js, D12) */
.idn-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.idn-student { flex-wrap: wrap; gap: 0.5rem; border-bottom: 1px solid #0002; }
.idn-ok { font-size: 0.875rem; opacity: 0.75; }
.idn-danger { color: #b00020; }
.idn-scan { width: 100%; max-width: 20rem; }
.idn-print { position: fixed; inset: 0; z-index: 2000; overflow: auto; background: #fff; color: #000; padding: 1rem; }
.idn-print-bar { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.idn-printcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5cm, 1fr)); gap: 0.5cm; }
.idn-printcard { border: 1px dashed #888; padding: 0.4cm; text-align: center; break-inside: avoid; }
.idn-printcard .idn-qr svg { width: 4cm; margin: 0 auto; }
@media print {
  body > *:not(.idn-print) { display: none !important; }
  .idn-print { position: static; padding: 0; }
  .idn-print-bar { display: none; }
}
