:root {
  color-scheme: light dark;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --unica-red: #e30613;
  --unica-red-dark: #b8050f;
  --unica-purple: #3b0068;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f5f6;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  border-top: 4px solid var(--unica-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 2rem;
  width: 320px;
  text-align: center;
}

.logo {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1.5rem;
}

h1 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--unica-purple);
}

.subtitle {
  color: #555;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

button {
  background: var(--unica-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--unica-red-dark);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

select:disabled {
  opacity: 0.6;
}

select {
  width: 100%;
  padding: 0.4rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

select:focus,
button:focus-visible {
  outline: 2px solid var(--unica-purple);
  outline-offset: 2px;
}

.status {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--unica-red-dark);
  margin-top: 1rem;
}

.status.busy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--unica-purple);
}

.status.busy::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--unica-purple);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status.busy::before {
    animation-duration: 3s;
  }
}

.hidden {
  display: none;
}
