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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #000;
    color: #f5f5f5;
  }

  .button {
    background: #f5f5f5;
    color: #111;
  }

  .input {
    background: #111;
    border-color: #444;
    color: #f5f5f5;
  }
}

.page {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 420px;
  min-height: 100vh;
  padding: 48px 32px;
  text-align: center;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
}

.title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
}

.subtitle {
  color: rgba(17, 17, 17, 0.7);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 32px;
}

@media (prefers-color-scheme: dark) {
  .subtitle {
    color: rgba(245, 245, 245, 0.7);
  }
}

.code-label {
  color: rgba(17, 17, 17, 0.5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .code-label {
    color: rgba(245, 245, 245, 0.5);
  }
}

.code {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 28px;
  word-break: break-all;
}

.button {
  background: #111;
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  min-width: 200px;
  padding: 14px 28px;
  text-decoration: none;
}

.footer {
  color: rgba(17, 17, 17, 0.7);
  font-size: 15px;
  margin-top: 32px;
}

@media (prefers-color-scheme: dark) {
  .footer {
    color: rgba(245, 245, 245, 0.7);
  }
}

.footer a {
  color: inherit;
  font-weight: 600;
}

.hidden {
  display: none;
}

.input {
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 12px;
  max-width: 320px;
  padding: 12px 14px;
  width: 100%;
}

.message {
  font-size: 16px;
  margin-top: 16px;
}

.message.error {
  color: #c0392b;
}

.message.success {
  color: #1e7e34;
}
