.scan-input-hidden {
  position: fixed;
  top: -100px;
  left: -100px;
  opacity: 0;
}

.login-screen {
  background: #0b1220;
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login-clock {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.1rem;
  color: #94a3b8;
}

.login-box {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  text-align: center;
}

.login-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: login-pulse 1.6s ease-in-out infinite;
}

@keyframes login-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

.login-box h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-box p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.link-button {
  background: none;
  border: none;
  color: #7dabff;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
}

.pin-login-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.pin-login-form label {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-bottom: -0.3rem;
}

.pin-login-form input {
  background: #16213b;
  border: 1px solid #24314f;
  color: #f1f5f9;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 1rem;
}

/* Bestätigungs-Modal (erscheint ueber der App, folgt daher deren Theme) */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.confirm-box {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.confirm-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: login-pulse 1.6s ease-in-out infinite;
}

.confirm-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.confirm-subtitle {
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #16213b;
  color: #f1f5f9;
  border: 1px solid #24314f;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

.toast.error {
  border-color: #dc2626;
  background: #3f1414;
}
