:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f5f1e8;
  color: #2b2118;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 205, 89, .24), transparent 26%),
    linear-gradient(135deg, #fff8e8 0%, #dceeff 100%);
}

button,
input {
  font: inherit;
}

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

.auth-card {
  width: min(640px, 100%);
  padding: 28px;
  border: 3px solid #2b2118;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 0 #2b2118, 0 24px 48px rgba(43, 33, 24, .18);
}

.brand {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 2px solid #2b2118;
  border-radius: 999px;
  background: #ffd756;
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
}

.lead {
  margin: 0 0 22px;
  color: #66574a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.lead.is-ok {
  color: #1d744d;
}

.lead.is-error {
  color: #b83224;
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid #2b2118;
  border-radius: 10px;
  background: #fff;
  color: #2b2118;
  outline: none;
}

input:focus {
  box-shadow: 0 0 0 4px rgba(255, 109, 66, .2);
}

.apple-button {
  min-height: 46px;
  margin-top: 4px;
  padding: 0 18px;
  border: 2px solid #111;
  border-radius: 12px;
  background: #111;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  box-shadow: 0 4px 0 #2b2118;
}

.apple-button:hover {
  filter: brightness(1.08);
}

.apple-button--secondary {
  background: #fff;
  color: #111;
}

.apple-mark {
  font-size: 22px;
  line-height: 1;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border: 2px solid #2b2118;
  border-radius: 12px;
  background: #fff6d7;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
  color: #66574a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

details {
  margin-top: 16px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

pre {
  max-height: 320px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #201b17;
  color: #fff7e8;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.result-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid #eadfce;
  border-radius: 10px;
  background: #fffdf8;
}

dt {
  color: #66574a;
  font-size: 13px;
  font-weight: 900;
}

dd {
  margin: 0;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  word-break: break-all;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-open-status {
  margin: 12px 0 0;
  color: #66574a;
  font-size: 13px;
  font-weight: 800;
}

.plain-link {
  color: #b83224;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 560px) {
  .auth-card {
    padding: 20px;
  }

  .result-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
