* {
  box-sizing: border-box;
}

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

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(620px, 100%);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #ffffff;
  font-size: 25px;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.7px;
}

.sub {
  margin: 8px 0 28px;
  color: #6b7280;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 7px;
}

label span {
  font-weight: 400;
  color: #9ca3af;
}

input {
  width: 100%;
  height: 50px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

button {
  border: 0;
  border-radius: 12px;
  height: 50px;
  padding: 0 18px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 22px;
  width: 100%;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.result {
  margin-top: 22px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.result small {
  display: block;
  color: #6b7280;
  margin-bottom: 4px;
}

.result a {
  color: #1d4ed8;
  font-weight: 700;
  word-break: break-all;
}

.copy {
  width: auto;
  margin: 0;
  background: #2563eb;
}

.hidden {
  display: none;
}

#message {
  margin-top: 14px;
  font-size: 14px;
  color: #b91c1c;
}

footer {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  margin-top: 18px;
}

@media (max-width: 520px) {
  .card {
    padding: 24px;
  }

  h1 {
    font-size: 27px;
  }

  .result {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy {
    width: 100%;
  }
}
