:root {
  color-scheme: dark;
  --bg: #030812;
  --panel: #091827;
  --line: #244862;
  --text: #eff8ff;
  --muted: #8ba3b7;
  --cyan: #31d6f4;
  --purple: #8b5cf6;
  --red: #fb7185;
  --display: "Arial Narrow", "Bahnschrift Condensed", "Roboto Condensed", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% 18%, rgba(21, 156, 198, 0.2), transparent 32rem),
    radial-gradient(circle at 85% 75%, rgba(118, 56, 209, 0.17), transparent 34rem),
    linear-gradient(160deg, #071321, var(--bg) 65%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(49, 214, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 214, 244, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

button, input { font: inherit; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(49, 214, 244, 0.28);
  outline-offset: 2px;
}

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

.login-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 455px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 32, 52, 0.98), rgba(5, 17, 30, 0.99));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.login-card::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 100px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--purple), transparent);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--cyan);
  font-family: Georgia, serif;
  font-size: 26px;
  border: 1px solid rgba(49, 214, 244, 0.56);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(49, 214, 244, 0.13), rgba(139, 92, 246, 0.12));
  box-shadow: 0 0 24px rgba(49, 214, 244, 0.09);
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: var(--display); font-size: 25px; line-height: 1; letter-spacing: 0.04em; }
.brand-copy strong span { color: var(--cyan); }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.25em; }

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: #bdf5ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(49, 214, 244, 0.23);
  border-radius: 99px;
  background: rgba(49, 214, 244, 0.06);
}
.security-badge span { color: #4ade80; font-size: 8px; text-shadow: 0 0 9px #4ade80; }

h1 {
  margin: 14px 0 7px;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.intro { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.55; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { color: #bdcedb; font-size: 10px; font-weight: 900; letter-spacing: 0.075em; text-transform: uppercase; }

input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid #2d506b;
  border-radius: 9px;
  background: #051321;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
input::placeholder { color: #5c7488; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(49, 214, 244, 0.08); outline: none; }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 75px; }
.password-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: #9cb2c3;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid #29485f;
  border-radius: 6px;
  background: #0b2032;
  cursor: pointer;
}

.login-message {
  margin: 0;
  padding: 10px 12px;
  color: #ffd8df;
  font-size: 11px;
  line-height: 1.45;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 8px;
  background: rgba(112, 22, 43, 0.18);
}

.login-button {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 3px;
  color: #00131c;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), #75e9ff);
  box-shadow: 0 12px 30px rgba(49, 214, 244, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.login-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.login-button:disabled { cursor: wait; opacity: 0.6; transform: none; }

.card-footer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 26px;
  padding-top: 18px;
  color: #70879a;
  border-top: 1px solid rgba(79, 119, 148, 0.18);
}
.card-footer .lock { color: var(--purple); }
.card-footer p { margin: 0; font-size: 10px; line-height: 1.5; }
.version { margin: 0; color: #526b80; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 500px) {
  .login-shell { align-content: start; padding-top: 50px; }
  .login-card { padding: 26px 21px; }
  h1 { font-size: 34px; }
}
