/* Die Code-Kacheln zum Anmelden (web/login.js): gemeinsam für den Eingang und das Dashboard */
.codepanel { display: flex; flex-direction: column; gap: 10px; }
.codebox { position: relative; display: flex; gap: 14px; }
.tilegroup { flex: 1; display: flex; gap: 5px; }
.tile { flex: 1; min-width: 0; height: 52px; border-radius: 12px; border: 2px solid transparent; background: var(--mj-surface-2); display: flex; align-items: center; justify-content: center;
  font: 600 22px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--mj-text); }
.tile.filled { background: var(--mj-surface-3); }
.tile.active { border-color: var(--mj-accent); }
.codeinput { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; background: transparent; font-size: 16px; caret-color: transparent; }
.codemsg { margin: 0; min-height: 20px; font-size: 14px; color: var(--mj-text-3); }
.codebox.bad .tile { border-color: var(--mj-accent); animation: shake 360ms; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .codebox.bad .tile { animation: none; } }
