:root {
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #edf3f8;
  background: #151b22;
  font-synthesis: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px 80px;
}
.login-card {
  width: min(100%, 420px);
  padding: 40px;
  background: rgba(38, 49, 61, .58);
  background-image: linear-gradient(145deg, #ffffff06, transparent 60%);
  border: 1px solid rgba(210, 225, 238, .1);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 #ffffff04, 0 24px 64px #00000030;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.login-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; }
.login-wordmark {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 38px;
  line-height: 40px;
  font-weight: 750;
  font-style: italic;
  letter-spacing: -1px;
  transform: none;
  background: linear-gradient(110deg, #edf3f8 15%, #7bd6ca 55%, #22a99a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.login-wordmark > span { color: inherit; }
label { display: block; margin: 20px 0 8px; color: #c8d3df; font-size: 14px; font-weight: 500; line-height: 20px; }
form > label:first-child { margin-top: 0; }
input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(190, 210, 225, .16);
  border-radius: 8px;
  background: rgba(13, 20, 28, .42);
  box-shadow: inset 0 1px 2px #00000012;
  color: #edf3f8;
  -webkit-text-fill-color: #edf3f8;
  font: inherit;
  font-size: 14px;
  caret-color: #edf3f8;
}
input:hover { border-color: rgba(190, 210, 225, .3); }
input:autofill { background: #19232e; color: #edf3f8; }
input:-webkit-autofill {
  border-color: rgba(190, 210, 225, .16);
  -webkit-text-fill-color: #edf3f8;
  -webkit-box-shadow: 0 0 0 1000px #19232e inset;
  caret-color: #edf3f8;
}
/* Keep the same fill and soft focus ring with or without browser autofill. */
input:focus {
  outline: none;
  border-color: #2aa99e;
  background: #16212b;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1000px #16212b, 0 0 0 3px #2aa99e1f, 0 0 12px #2aa99e1a;
}
.login-error { min-height: 20px; margin: 8px 0 12px; color: #ffb4ab; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
button {
  width: 100%;
  height: 44px;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  background: #0f766e;
  background-image: linear-gradient(115deg, #11867c, #0f766e);
  box-shadow: inset 0 1px 0 #ffffff0a, 0 4px 12px #00000014;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  cursor: pointer;
}
button:hover:not(:disabled) { background: linear-gradient(115deg, #129489, #108278); }
button:active:not(:disabled) { background: #0c655f; box-shadow: inset 0 1px 2px #00000026; }
button:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
button:disabled { opacity: .65; cursor: wait; letter-spacing: normal; }
@media (max-width: 480px) {
  body { padding: 24px 20px; }
  .login-card { padding: 32px 24px; }
}
@media (max-height: 600px) {
  body { padding-top: 24px; padding-bottom: 24px; }
}
