* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef2f7;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef2f7;
}

.page {
  width: 100%;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  background: linear-gradient(180deg, #d9363e 0 168px, #eef2f7 168px 100%);
}

.hero {
  padding: 22px 18px 0;
}

.hero-inner {
  color: #fff;
  padding: 8px 0 10px;
}

.brand {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.subtitle {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
}

.panel {
  margin: 18px 14px 0;
  padding: 18px 16px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.field {
  width: 100%;
}

input {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 17px;
  color: #111827;
  background: #fbfcfe;
  outline: none;
}

input:focus {
  border-color: #d9363e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217, 54, 62, 0.12);
}

button {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #d9363e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.message.error {
  color: #dc2626;
}

.message.success {
  color: #047857;
}

.result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf0f4;
  text-align: center;
}

.tenant {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.qrcode-wrap {
  width: min(260px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.qrcode {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.link {
  display: inline-block;
  max-width: 100%;
  margin-top: 14px;
  color: #d9363e;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
  text-decoration: none;
}

.footer {
  margin-top: 14px;
  text-align: center;
  color: #8a94a6;
  font-size: 12px;
  padding: 0 18px;
}

@media (min-width: 481px) {
  .page {
    justify-content: center;
  }

  .hero {
    padding-top: 40px;
  }
}
