:root {
  color-scheme: dark;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  background: #080b10;
  color: #e6edf3;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(24, 53, 67, 0.18), transparent 42%),
    #080b10;
}

.code-background {
  position: fixed;
  inset: -20%;
  opacity: 0.12;
  transform: rotate(-7deg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 28px,
      rgba(114, 198, 207, 0.2) 29px,
      transparent 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 74px,
      rgba(114, 198, 207, 0.14) 75px,
      transparent 76px
    );
}

.code-background::after {
  content: "const bot = await connect();\A if (bot.ready) {\A   await bot.listen();\A }\A\A function secure(input) {\A   return input.trim();\A }\A\A > initializing...\A > waiting for access...";
  white-space: pre;
  position: absolute;
  inset: 7% 8%;
  color: #68c7cf;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  line-height: 2.05;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(104, 199, 207, 0.45);
}

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

.login-card {
  width: min(100%, 410px);
  padding: 30px;
  border: 1px solid rgba(132, 155, 165, 0.28);
  background: rgba(10, 14, 20, 0.88);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.password-label {
  display: block;
  margin-bottom: 13px;
  color: #d8e3e8;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.input-row {
  display: flex;
  gap: 10px;
}

input,
button {
  min-height: 44px;
  border: 1px solid rgba(132, 155, 165, 0.38);
  border-radius: 0;
  font: inherit;
}

input {
  min-width: 0;
  flex: 1;
  padding: 0 13px;
  outline: none;
  color: #f3fbfc;
  background: rgba(3, 6, 10, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: #68c7cf;
  box-shadow: 0 0 0 3px rgba(104, 199, 207, 0.12);
}

button {
  padding: 0 17px;
  cursor: pointer;
  color: #071013;
  background: #68c7cf;
  border-color: #68c7cf;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover:not(:disabled) {
  background: #90e0e6;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

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

.status {
  min-height: 1.25em;
  margin: 14px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.status.success {
  color: #83e0ab;
}

.status.error {
  color: #f28b8b;
}

@media (max-width: 450px) {
  .login-card {
    padding: 24px 20px;
  }
}
