[hidden] {
  display: none !important;
}

/* Sage green secure-access system · Yunnan mountain redesign */

:root {
  --ink: #173126;
  --paper: #f7faf4;
  --surface: #fbfefa;
  --line: #afc5aa;
  --coffee: #173d2e;
  --brass: #a9ca99;
  --copper: #557f51;
  --muted: #65766c;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --display: "STSong", "SimSun", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image: url("./assets/login-yunnan-mist-background.png");
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-family: var(--sans);
}

body{font-size:15px}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(360px, 40%);
  min-height: calc(100vh - 36px);
}

.login-story {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  padding: clamp(90px, 12.5vh, 132px) clamp(48px, 10.5vw, 164px);
  color: #edf7e8;
}

.login-mark {
  display: flex;
  max-width: 520px;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 3vh, 34px);
}

.login-mark > span {
  display: grid;
  width: clamp(96px, 8vw, 124px);
  height: clamp(96px, 8vw, 124px);
  place-items: center;
  border: 2px solid rgba(207, 226, 191, .78);
  border-radius: 50%;
  margin-left: clamp(48px, 6.5vw, 96px);
  box-shadow: 0 0 0 9px rgba(169, 202, 153, .08), inset 0 0 22px rgba(237, 247, 232, .035);
  color: #dbeacb;
  font: 400 clamp(38px, 3.4vw, 52px)/1 var(--display);
}

.login-mark strong {
  color: #e3efd6;
  font-family: var(--display);
  font-size: clamp(52px, 5.2vw, 78px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.075em;
  text-shadow: 0 3px 22px rgba(4, 26, 18, .28);
  white-space: nowrap;
}

.login-card {
  width: min(410px, calc(100% - 72px));
  align-self: center;
  justify-self: center;
  padding: 8px 0;
  transform: translateX(20px);
}

.login-card > header {
  display: grid;
  gap: 20px;
  margin-bottom: 52px;
}

.login-card > header h1 {
  margin: 0;
  color: #102b20;
  font-family: var(--display);
  font-size: clamp(40px, 3.8vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.login-card > header i {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: #9ab789;
}

form,
.setup-card {
  display: grid;
  gap: 34px;
}

label {
  display: grid;
  gap: 14px;
}

label > span {
  color: #274438;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}

input {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(93, 124, 103, .38);
  border-radius: 11px;
  outline: 0;
  background: rgba(251, 254, 250, .74);
  color: var(--ink);
  padding: 13px 18px;
  font: 16px var(--sans);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input::placeholder {
  color: #8c9a91;
}

input:hover {
  border-color: rgba(85, 127, 81, .62);
  background: rgba(255, 255, 255, .9);
}

input:focus {
  border-color: #6f9d67;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(105, 151, 96, .14);
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: -2px;
  color: #496156;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 21px;
  min-height: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin: 0;
  accent-color: #315f47;
}

.remember-me span {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}

button,
.setup-card a {
  display: grid;
  min-height: 70px;
  place-items: center;
  border: 1px solid #164d36;
  border-radius: 10px;
  background: #17553c;
  box-shadow: 0 10px 28px rgba(23, 61, 46, .12);
  color: #fff;
  padding: 12px 20px;
  font: 800 17px var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

button:hover,
.setup-card a:hover {
  transform: translateY(-1px);
  background: #124832;
  box-shadow: 0 14px 34px rgba(23, 61, 46, .18);
}

button:focus-visible,
.setup-card a:focus-visible {
  outline: 3px solid rgba(111, 157, 103, .35);
  outline-offset: 3px;
}

button:disabled {
  transform: none;
  opacity: .58;
  cursor: wait;
}

.login-loading {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.login-loading i {
  width: 34px;
  height: 34px;
  border: 3px solid #c8d9c3;
  border-top-color: #315f47;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.login-loading p {
  margin: 0;
}

.setup-card {
  color: var(--ink);
}

.setup-card h2 {
  margin: 0;
  font-size: 24px;
}

.setup-card p {
  margin: -12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-index {
  color: #78936f;
  font: 800 11px "Cascadia Mono", Consolas, monospace;
  letter-spacing: .12em;
}

.login-message {
  margin: 20px 0 0;
  border-left: 3px solid #a94b42;
  background: rgba(245, 228, 224, .82);
  color: #893b35;
  padding: 10px 12px;
  font-size: 13px;
}

.login-card .field-requirement-badge {
  display: none;
}

.login-site-record {
  position: fixed;
  right: 26px;
  bottom: 14px;
  z-index: 2;
  color: rgba(73, 97, 86, .62);
  font-size: 11px;
  line-height: 1.4;
}

.login-site-record a {
  color: inherit;
  text-decoration: none;
}

.login-site-record a:hover,
.login-site-record a:focus-visible {
  color: #315f47;
  text-decoration: underline;
}

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

@media (max-height: 720px) and (min-width: 781px) {
  .login-story {
    padding-top: 46px;
  }

  .login-mark {
    gap: 18px;
  }

  .login-mark > span {
    width: 82px;
    height: 82px;
    margin-left: 56px;
    font-size: 34px;
  }

  .login-mark strong {
    font-size: clamp(42px, 5vw, 60px);
  }

  .login-card > header {
    gap: 14px;
    margin-bottom: 24px;
  }

  .login-card > header h1 {
    font-size: 40px;
  }

  form,
  .setup-card {
    gap: 20px;
  }

  input {
    min-height: 52px;
  }

  button,
  .setup-card a {
    min-height: 54px;
  }
}
