:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  background: #ffffff;
  color: #1d1d1f;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}
.login-shell {
  width: min(100%, 420px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 1.42857vw, 20px);
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.brand b {
  font-weight: 400;
  color: #6e6e73;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
  color: #007aff;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: -1px;
}
.login-card {
  padding: 32px;
  background: #f5f5f7;
  border: 1px solid #ededf0;
  border-radius: 16px;
}
.status {
  font-size: clamp(12px, 0.857143vw, 12px);
  color: #6e6e73;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #007aff;
}
h1 {
  font-weight: 600;
  font-size: clamp(28px, 2.14286vw, 30px);
  letter-spacing: -1px;
  margin: 16px 0 36px;
}
label {
  display: block;
  font-size: clamp(12px, 1vw, 14px);
  margin-bottom: 10px;
}
.key-field {
  display: flex;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.key-field:focus-within {
  outline: 2px solid #007aff;
  outline-offset: 3px;
}
input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 14px;
  background: transparent;
  color: inherit;
  font: 16px monospace;
  outline: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
}
#toggle-key {
  background: none;
  border: 0;
  padding: 0 14px;
  flex-shrink: 0;
  color: #6e6e73;
  font-size: clamp(12px, 0.928571vw, 13px);
}
.primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #007aff;
  color: #ffffff;
  font-weight: 600;
  transition: background 0.15s;
}
.primary:hover {
  background: #005bb5;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 3px;
}
#login-error {
  min-height: 24px;
  color: #c93228;
  font-size: clamp(12px, 0.928571vw, 13px);
  margin: 12px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  color: #6e6e73;
  font-size: clamp(12px, 0.857143vw, 12px);
}
@media (max-width: 480px) {
  .brand {
    margin-bottom: 32px;
  }
  .login-card {
    padding: 24px;
  }
}

.primary {
  background: #0066cc;
}
input {
  font-size: clamp(16px, 1.2vw, 18px);
}

/* 品牌图形沿用 viktor 提供的腰果原始配色。 */
.brand-mark{background:transparent;border:0;width:40px;height:40px}.brand-mark img{display:block;width:40px;height:40px;object-fit:contain}
