:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --panel: #12151d;
  --line: #282d3a;
  --muted: #8d95a8;
  --text: #f4f6fb;
  --accent: #a9ff68;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 24%, rgba(49, 208, 170, 0.08), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(124, 199, 255, 0.07), transparent 30rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 14, 20, 0.1) 72%, var(--bg) 100%);
}

.login-data-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 21, 29, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #11150e;
  background: var(--accent);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand > span:last-child { display: grid; line-height: 1; }
.brand b { font-size: 18px; letter-spacing: 0.12em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: 0.17em; }

.login-copy { margin: 40px 0 26px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; }
.eyebrow span { display: inline-block; width: 18px; height: 1px; margin: 0 8px 3px 0; background: currentColor; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 38px); line-height: 1.04; letter-spacing: -0.035em; }
.login-copy > p:last-child { margin: 16px 0 0; color: var(--muted); line-height: 1.55; }

.login-error {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 103, 103, 0.35);
  border-radius: 10px;
  color: #ffc1c1;
  background: rgba(255, 84, 84, 0.08);
  font-size: 14px;
}

form { display: grid; gap: 17px; }
label { display: grid; gap: 8px; }
label > span { color: #cdd2de; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #0d1017;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169, 255, 104, 0.1); }
button {
  display: flex;
  width: 100%;
  height: 50px;
  margin-top: 5px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  color: #10150c;
  background: var(--accent);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
button:hover { filter: brightness(1.06); }
button:focus-visible { outline: 3px solid rgba(169, 255, 104, 0.3); outline-offset: 3px; }

.security-note {
  display: flex;
  gap: 9px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.security-note i { color: var(--accent); font-style: normal; }

@media (max-width: 520px) {
  .login-card { padding: 26px 22px; }
  .login-copy { margin-top: 32px; }
}
