:root {
  --ink: #10203a;
  --paper: #eef5ff;
  --card: rgba(244, 249, 255, 0.94);
  --line: rgba(40, 80, 140, 0.14);
  --muted: #5b6f8a;
  --accent: #2f7dff;
  --accent-2: #3ec8ff;
  --accent-dark: #1e5ed9;
  --navy: #070b18;
  --ok-shadow: 0 24px 60px rgba(8, 20, 48, 0.28);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: transparent;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #041018;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 15, 27, 0.08), rgba(3, 15, 27, 0.02));
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 6vw;
}

.login-card {
  position: relative;
  width: min(400px, 100%);
  padding: 38px 32px 30px;
  text-align: center;
  color: #eaf8ff;
  background:
    linear-gradient(165deg, rgba(20, 70, 98, 0.22), rgba(6, 24, 40, 0.12) 48%, rgba(8, 36, 52, 0.18));
  border: 1px solid rgba(90, 230, 255, 0.42);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 48px rgba(56, 190, 255, 0.08),
    0 0 36px rgba(56, 210, 255, 0.16),
    0 24px 50px rgba(0, 8, 18, 0.22);
  backdrop-filter: blur(18px) saturate(1.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.55);
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(120, 230, 255, 0.16), transparent 26%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.55;
}

.holo-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 0 solid #6ef0ff;
  filter: drop-shadow(0 0 6px rgba(72, 221, 255, 0.85));
}

.holo-corner.tl { left: 8px; top: 8px; border-left-width: 2px; border-top-width: 2px; }
.holo-corner.tr { right: 8px; top: 8px; border-right-width: 2px; border-top-width: 2px; }
.holo-corner.bl { left: 8px; bottom: 8px; border-left-width: 2px; border-bottom-width: 2px; }
.holo-corner.br { right: 8px; bottom: 8px; border-right-width: 2px; border-bottom-width: 2px; }

.login-card form {
  position: relative;
  z-index: 1;
  text-align: left;
}

.login-card .brand-logo,
.login-card .brand-title,
.login-card .lede,
.login-card .alert {
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(72, 221, 255, 0.45));
}

.brand-title {
  margin: 0 0 8px;
  font-weight: 750;
  line-height: 1.35;
  display: grid;
  gap: 2px;
}

.brand-title span:first-child {
  font-size: 30px;
  letter-spacing: 0.18em;
  color: #f1fbff;
  text-shadow: 0 0 22px rgba(91, 222, 255, 0.22);
}

.brand-title span:last-child {
  font-size: 16px;
  letter-spacing: 0.32em;
  color: #7fe9ff;
  text-shadow: 0 0 16px rgba(72, 221, 255, 0.35);
}

.login-card .lede {
  margin: 0 auto 22px;
  max-width: none;
  color: rgba(186, 226, 238, 0.82);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.login-card label {
  color: rgba(181, 220, 232, 0.78);
}

.login-card input {
  color: #eefaff;
  background: rgba(6, 28, 44, 0.28);
  border: 1px solid rgba(90, 220, 255, 0.28);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(56, 190, 255, 0.06);
}

.login-card input:focus {
  border-color: #7af0ff;
  box-shadow: 0 0 0 3px rgba(75, 220, 255, 0.12), inset 0 0 18px rgba(56, 190, 255, 0.1);
}

.login-card .btn.primary {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(47, 140, 255, 0.82), rgba(72, 221, 255, 0.92));
  box-shadow: 0 0 22px rgba(72, 221, 255, 0.28);
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0 0 12px;
}

h1, h2 {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 { font-size: 42px; }
h2 { font-size: 28px; }

.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 22em;
}

.meta {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #e8f3ff;
}

.meta li {
  margin: 10px 0;
  padding-left: 18px;
  position: relative;
}

.meta li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  position: absolute;
  left: 0;
  top: 0.55em;
  box-shadow: 0 0 10px rgba(62, 200, 255, 0.8);
}

.hint { color: var(--muted); margin: 0 0 22px; }

form { display: grid; gap: 10px; }

label {
  font-size: 13px;
  color: var(--muted);
}

input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(30, 90, 140, 0.2);
  background: rgba(255, 255, 255, 0.66);
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.16);
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 650;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn.primary {
  margin-top: 8px;
  height: 50px;
  background: linear-gradient(90deg, #2f7dff, #3ec8ff);
  color: #f7fbff;
}

.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn.ghost {
  height: 40px;
  padding: 0 16px;
  background: rgba(255,255,255,0.62);
  color: #123056;
  border: 1px solid rgba(18, 48, 86, 0.18);
}

.btn.big {
  min-width: 260px;
  height: 58px;
  font-size: 18px;
  margin-top: 8px;
}

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.alert.error {
  background: #fde8df;
  color: #8a2b12;
}

.alert.ok {
  background: #e7f4e4;
  color: #215c28;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  color: #10203a;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.home {
  max-width: 640px;
  margin: 8vh auto 0;
  background: var(--card);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: var(--ok-shadow);
}

.url-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 8px 24px 40px;
  color: #10203a;
}

.page h1, .page h2, .page .lede, .page .eyebrow {
  color: inherit;
}

.page .lede { margin-bottom: 22px; }

.card {
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  border-radius: 24px;
  padding: 28px 26px;
  margin-bottom: 18px;
  box-shadow: var(--ok-shadow);
  backdrop-filter: blur(12px);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.inline-form label {
  display: grid;
  gap: 8px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.mini-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-form input {
  height: 38px;
  width: 140px;
}

.btn.small {
  height: 38px;
  padding: 0 14px;
  background: #15284a;
  color: #eef6ff;
  border-radius: 999px;
}

.btn.danger { background: #a33b24; }

@media (max-width: 860px) {
  .shell { padding: 24px 20px; justify-content: center; }
  .login-card { padding: 28px 20px 24px; }
  .brand-title span:first-child { font-size: 26px; }
  .brand-title span:last-child { font-size: 16px; }
  h1 { font-size: 32px; }
  .inline-form { grid-template-columns: 1fr; }
}
