:root {
  color-scheme: light dark;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #f3f6fa;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f3f6fa;
}

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

.access-panel {
  width: min(100%, 380px);
  padding: 32px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(33, 45, 68, 0.1);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #256daf;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.access-subtitle {
  margin: 8px 0 26px;
  color: #667085;
  font-size: 14px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

input,
button {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
  letter-spacing: 0;
}

input {
  border: 1px solid #c8d1dd;
  outline: none;
  padding: 10px 12px;
  background: #ffffff;
  color: #172033;
}

input:focus {
  border-color: #2f75b5;
  box-shadow: 0 0 0 3px rgba(47, 117, 181, 0.16);
}

button {
  margin-top: 8px;
  border: 1px solid #256daf;
  background: #256daf;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: #1f5f9a;
}

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

.access-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #c43232;
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root,
  body {
    background: #101513;
    color: #f4f7f5;
  }

  .access-panel {
    border-color: #36413d;
    background: #171d1a;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  }

  .access-subtitle {
    color: #aeb8b3;
  }

  label {
    color: #d8dfdb;
  }

  input {
    border-color: #46534d;
    background: #101513;
    color: #f4f7f5;
  }

  input:focus {
    border-color: #75aee0;
    box-shadow: 0 0 0 3px rgba(117, 174, 224, 0.18);
  }

  .brand-mark,
  button {
    border-color: #4b91cc;
    background: #397eb9;
  }

  button:hover {
    background: #4b91cc;
  }

  .access-error {
    color: #ff8f8f;
  }
}
