*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

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

.subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: #9ca3af;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.field span {
  color: #cbd5f5;
}

input[type="text"] {
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.95rem;
}

input[type="text"]:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}

.btn {
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #0b1120;
}

.btn.primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn.secondary {
  margin-top: 1rem;
  background: #020617;
  border: 1px solid #4b5563;
  color: #e5e7eb;
}

.status {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.status.error {
  color: #f87171;
}

.status.success {
  color: #4ade80;
}

.result {
  margin-top: 1.75rem;
  text-align: center;
}

.result h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.result img {
  width: 100%;
  border-radius: 1.2rem;
  border: 1px solid #4b5563;
}

.hidden {
  display: none;
}
