:root {
  --bg: #080d12;
  --card: #101920;
  --border: rgba(210, 235, 240, 0.11);
  --text: #eef5f5;
  --muted: #7d8f97;
  --accent: #d9ff68;
  --green: #64e0aa;
  --red: #ff786f;
  --display: Georgia, "Noto Serif SC", "Songti SC", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  background:
    radial-gradient(circle at 75% 0%, rgba(142, 201, 255, 0.09), transparent 30rem),
    radial-gradient(circle at 10% 100%, rgba(217, 255, 104, 0.04), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(circle at center, #000, transparent 70%);
  pointer-events: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 30px));
  padding: 30px 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(217, 255, 104, 0.27);
  border-radius: 10px;
  background: rgba(217, 255, 104, 0.04);
}

.brand-mark i {
  height: 50%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
}

.brand-mark i:nth-child(2) {
  height: 75%;
  opacity: 0.75;
}

.brand-mark i:nth-child(3) {
  height: 100%;
}

.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.brand strong span {
  color: var(--accent);
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.login-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 255, 104, 0.055), transparent 35%),
    var(--card);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.security-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #5d7078;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.security-line span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.security-line i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.lock-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-top: 26px;
  place-items: center;
  border: 1px solid rgba(217, 255, 104, 0.15);
  border-radius: 13px;
  background: rgba(217, 255, 104, 0.045);
  color: var(--accent);
}

.lock-mark svg {
  width: 21px;
  height: 21px;
}

h1 {
  margin: 17px 0 8px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.login-card > p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

form.is-hidden {
  display: none;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label span {
  color: #9dacb2;
  font-size: 9px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  background: rgba(4, 8, 11, 0.34);
  color: var(--text);
  font: 11px var(--sans);
}

input:focus {
  border-color: rgba(217, 255, 104, 0.25);
  box-shadow: 0 0 0 3px rgba(217, 255, 104, 0.035);
}

button {
  min-height: 43px;
  margin-top: 3px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #182009;
  cursor: pointer;
  font: 700 10px var(--sans);
}

button:hover {
  background: #e3ff8b;
}

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

form small {
  color: #5f7179;
  font-size: 8px;
  line-height: 1.5;
}

.login-message {
  min-height: 17px;
  margin-top: 12px;
  color: var(--red);
  font-size: 9px;
  line-height: 1.5;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  color: #6a7c84;
  font-size: 9px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 13px;
  height: 13px;
}
