:root {
  color-scheme: dark;
  --bg: #050912;
  --panel: rgba(13, 20, 34, 0.94);
  --panel-border: rgba(144, 164, 201, 0.18);
  --text: #edf4ff;
  --muted: #8e9db5;
  --accent: #34d399;
  --accent-strong: #18b981;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 15%, rgba(38, 105, 126, 0.2), transparent 34rem),
    linear-gradient(145deg, #050912, #080d17 55%, #04070d);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(113, 139, 174, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 139, 174, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.login-card {
  width: min(100%, 440px);
  padding: 38px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: flex;
  align-items: end;
  width: 38px;
  height: 34px;
  gap: 4px;
  margin-bottom: 24px;
}

.brand-mark span {
  display: block;
  width: 8px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.brand-mark span:nth-child(1) {
  height: 14px;
}

.brand-mark span:nth-child(2) {
  height: 28px;
}

.brand-mark span:nth-child(3) {
  height: 21px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--accent);
}

.intro {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

form {
  display: grid;
  gap: 17px;
}

label {
  display: grid;
  gap: 7px;
  color: #cbd6e8;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(144, 164, 201, 0.24);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: rgba(3, 7, 14, 0.66);
  font: inherit;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:focus {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.11);
}

button {
  width: 100%;
  margin-top: 3px;
  padding: 13px 16px;
  border: 0;
  border-radius: 9px;
  color: #03110c;
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

button:hover {
  background: #5ee6b5;
}

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

.login-error {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.login-error.is-hidden {
  visibility: hidden;
}

.session-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(144, 164, 201, 0.12);
  color: #74839a;
  font-size: 0.75rem;
  line-height: 1.55;
}

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