:root {
  --bg-1: #e6d9f8;
  --bg-2: #f0e2f6;
  --bg-3: #d3c1f0;
  --card-bg: #fdfaff;
  --ink: #362c47;
  --ink-soft: #7c6f8f;
  --accent: #9b6fd1;
  --accent-dark: #7548b0;
  --accent-soft: #e6d8f7;
  --good: #7bc99f;
  --bad: #d17b7b;
  --shadow: 0 20px 50px rgba(130, 90, 190, 0.25);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-size: 300% 300%;
  animation: drift 18s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@keyframes drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
  animation: pop-in 0.5s ease;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cat {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 26px rgba(117, 72, 176, 0.3);
  margin-bottom: 18px;
}

h1 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

p {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 8px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(117, 72, 176, 0.35);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.state {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.state.error {
  color: var(--bad);
}

.fine-print {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
