:root {
  color: #263238;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: #263238;
  background: #f4f7fa;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(24, 144, 255, 0.36);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: clamp(58px, 11vh, 96px) 16px 48px;
}

.login-brand {
  display: flex;
  width: min(360px, 100%);
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: #ffffff;
  background: #176b5a;
  border: 1px solid #125648;
  border-radius: 6px;
  box-shadow: 0 7px 18px rgba(23, 107, 90, 0.18);
}

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

.login-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.login-brand h1,
.login-brand p,
.login-panel h2,
.login-panel p {
  margin: 0;
}

.login-brand h1 {
  color: #202b30;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
}

.login-brand p {
  margin-top: 3px;
  color: #77838b;
  font-size: 12px;
}

.login-panel {
  display: flex;
  width: min(360px, 100%);
  min-height: 416px;
  flex-direction: column;
  padding: 36px 34px 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8ec;
  border-radius: 4px;
  box-shadow: 0 18px 46px rgba(34, 50, 58, 0.11);
}

.login-panel-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 29px;
}

.login-panel-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #176b5a;
  background: #e8f3ef;
  border-radius: 4px;
}

.login-panel-icon svg {
  width: 18px;
  height: 18px;
}

.login-panel h2 {
  color: #263238;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.login-panel-heading p {
  margin-top: 3px;
  color: #8a969d;
  font-size: 11px;
}

#login-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.login-field {
  position: relative;
  display: flex;
  height: 42px;
  align-items: center;
  margin-bottom: 16px;
  color: #89959c;
  background: #ffffff;
  border: 1px solid #d9e0e4;
  border-radius: 3px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.login-field:focus-within {
  border-color: #1890ff;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.login-field > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-left: 12px;
  stroke-width: 1.8;
}

.login-field input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  color: #273238;
  background: transparent;
  border: 0;
  outline: 0;
}

.login-field input::placeholder {
  color: #a1abb1;
}

.password-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  place-items: center;
  color: #87939a;
  background: transparent;
  border: 0;
}

.password-toggle:hover {
  color: #4d5b62;
}

.password-toggle svg {
  width: 17px;
  height: 17px;
}

.login-error {
  min-height: 34px;
  margin: -2px 0 14px;
  padding: 8px 10px;
  color: #a3322c;
  font-size: 12px;
  line-height: 1.4;
  background: #fff0ef;
  border: 1px solid #ffd4d1;
  border-radius: 3px;
}

.login-error[hidden] {
  display: none;
}

.login-submit {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  color: #ffffff;
  font-size: 15px;
  background: #1890ff;
  border: 1px solid #1890ff;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

.login-submit:hover:not(:disabled) {
  background: #40a9ff;
  border-color: #40a9ff;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-submit svg {
  width: 17px;
  height: 17px;
}

.login-submit.loading svg {
  animation: login-spin 800ms linear infinite;
}

.login-panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  color: #9aa4aa;
  font-size: 10px;
}

.login-panel-footer svg {
  width: 13px;
  height: 13px;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .login-shell {
    justify-content: center;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .login-brand {
    margin-bottom: 22px;
  }

  .login-panel {
    min-height: 390px;
    padding: 30px 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
