:root {
  color-scheme: light dark;
  --bg-start: #eef2ff;
  --bg-end: #e0f2fe;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-contrast: #ffffff;
  --result-bg: #f8fafc;
  --status: #16a34a;
  --shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-start: #0f172a;
    --bg-end: #1e1b4b;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-contrast: #1e1b4b;
    --result-bg: #0f172a;
    --status: #4ade80;
    --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  display: flex;
  min-height: 100vh;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

h1 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.field {
  text-align: left;
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--result-bg);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

button {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  margin-top: 0.5rem;
  color: var(--accent-contrast);
  background: var(--accent);
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  transform: scale(0.98);
}

.result {
  margin-top: 1.25rem;
}

#email {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  word-break: break-all;
  background: var(--result-bg);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.status {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--status);
  text-align: center;
}

@media (max-width: 400px) {
  .card {
    padding: 1.5rem;
  }
}
