:root {
  color-scheme: light;
  --page: #edf1f2;
  --surface: #ffffff;
  --text: #1c2529;
  --muted: #647078;
  --border: #d5dddf;
  --green: #157a52;
  --danger: #a63c36;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(28, 37, 41, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 37, 41, 0.026) 1px, transparent 1px),
    var(--page);
  background-size: 30px 30px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

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

.login-panel {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(28, 37, 41, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #bfd0c6;
  border-radius: 8px;
  color: var(--green);
  background: #e5f2eb;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.login-form {
  margin-top: 30px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  height: 46px;
  padding: 0 48px 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #fbfcfc;
  outline: none;
}

.password-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 122, 82, 0.1);
}

.password-field button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.password-field button:hover {
  background: #edf1f1;
}

.password-field svg {
  width: 18px;
  height: 18px;
}

.submit-button {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 1px solid #1d292e;
  border-radius: 8px;
  color: #ffffff;
  background: #263238;
  font-weight: 750;
  cursor: pointer;
}

.submit-button:hover {
  background: #11191d;
}

.submit-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.login-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 14px;
  }

  .login-panel {
    padding: 24px 20px;
  }
}
