body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-color: #f9fafb;
  margin: 0;
  padding: 3rem 1rem 1rem;
  box-sizing: border-box;
}

.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  animation: cardEntrance 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(14px);
  animation: sectionReveal 500ms ease forwards;
  animation-delay: 200ms;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #4a5568;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1rem;
}

.card-content {
  opacity: 0;
  transform: translateY(14px);
  animation: sectionReveal 500ms ease forwards;
  animation-delay: 350ms;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d3748;
}

input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a5568;
  background-color: #fff;
  background-image: none;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="text"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 0.375rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.button-primary {
  color: #ffffff;
  background-color: #6366f1;
  border-color: #6366f1;
}

.button-primary:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.qr-code-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}

.qr-code-container {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.qr-code-container canvas {
  display: block;
}

.button-download {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.button-download:hover {
  background-color: #059669;
  border-color: #059669;
}

.message {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  text-align: center;
  font-size: 0.875rem;
}

.message.success {
  background-color: #d1fae5;
  color: #065f46;
}

.message.error {
  background-color: #fee2e2;
  color: #991b1b;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96) rotate(-1deg);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card-header,
  .card-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
