:root {
  color-scheme: dark;
  --bg: #080b0d;
  --surface: #12171b;
  --surface-2: #182027;
  --line: #28323a;
  --text: #f3f7f4;
  --muted: #8e9aa3;
  --cyan: #35d9ff;
  --green: #7df5a1;
  --red: #ff6370;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(53, 217, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(125, 245, 161, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 54px 54px;
}

button,
input {
  font: inherit;
}

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

.login-panel {
  display: grid;
  gap: 24px;
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 27, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

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

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(53, 217, 255, 0.5);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(53, 217, 255, 0.09);
  font-weight: 900;
}

.brand-logo-shell {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-line strong,
.brand-line span {
  display: block;
}

.brand-line span,
.login-heading p {
  color: var(--muted);
  font-size: 12px;
}

.login-heading {
  display: grid;
  gap: 6px;
}

.login-heading h1,
.login-heading p {
  margin: 0;
}

.login-heading h1 {
  font-size: 28px;
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
}

.primary {
  min-height: 42px;
  border: 1px solid rgba(53, 217, 255, 0.46);
  border-radius: 8px;
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
  cursor: pointer;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}
