:root {
  --bg-1: #03121a;
  --bg-2: #071f2d;
  --ink: #eaf8ff;
  --muted: #8eb3c4;
  --line: rgba(107, 180, 214, 0.18);
  --card: rgba(7, 24, 36, 0.72);
  --card-border: rgba(97, 171, 206, 0.32);
  --input-bg: rgba(4, 16, 24, 0.7);
  --accent: #24b8d8;
  --accent-2: #ff8a3d;
  --danger: #ff8f8f;
  --ok: #63e6b5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(36, 184, 216, 0.18), transparent 34%),
    radial-gradient(circle at 84% 76%, rgba(255, 138, 61, 0.14), transparent 30%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  overflow: hidden;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr minmax(320px, 420px);
  align-items: center;
  gap: 36px;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  opacity: 0.6;
  animation: drift 12s linear infinite;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(44px);
  }
}

.brand-panel {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.brand-chip,
.panel-chip {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(138, 204, 233, 0.4);
  background: rgba(6, 31, 46, 0.6);
  color: #9dd9f0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: "Orbitron", sans-serif;
}

.brand-panel h1 {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.login-card h2 {
  margin: 0 0 12px;
  font-size: 1.42rem;
}

label {
  display: block;
  margin-top: 10px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #9ec7d9;
  font-size: 0.82rem;
}

.text-input {
  width: 100%;
  border: 1px solid rgba(134, 190, 214, 0.28);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--input-bg);
}

.text-input:focus {
  outline: none;
  border-color: rgba(36, 184, 216, 0.72);
  box-shadow: 0 0 0 3px rgba(36, 184, 216, 0.16);
}

.login-btn {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 700;
  color: #02131c;
  background: linear-gradient(135deg, var(--accent), #68d0e8 58%, var(--accent-2));
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(36, 184, 216, 0.3);
}

.login-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.status {
  margin: 11px 0 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.82rem;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--ok);
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(520px, 100%);
  }

  .brand-panel {
    padding: 6px 4px;
  }

  .brand-panel h1 {
    font-size: clamp(1.6rem, 8.5vw, 2.3rem);
  }
}

@media (max-width: 560px) {
  .login-shell {
    padding: 14px;
  }

  .login-card {
    padding: 18px;
  }
}
