:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: rgba(18, 23, 34, 0.74);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #9aa7b8;
  --accent: #42d6a4;
  --accent-2: #56a6ff;
  --danger: #ff6b87;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(66, 214, 164, 0.16), transparent 34rem),
    linear-gradient(145deg, #07090f 0%, #111722 58%, #080b12 100%);
}

.gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.gate-panel {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.brand-mark::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #071019;
  content: "";
}

.eyebrow {
  margin: 34px 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 34ch;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 10px;
}

label {
  color: #c6d0df;
  font-size: 13px;
  font-weight: 680;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

input:focus {
  border-color: rgba(86, 166, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(86, 166, 255, 0.14);
}

button {
  height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #061015;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  font-weight: 760;
}

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

.message {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 14px;
}

@media (max-width: 560px) {
  .gate {
    padding: 16px;
  }

  .gate-panel {
    padding: 24px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
