#brain-auth-gate {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: radial-gradient(ellipse at top, rgba(56, 189, 248, .12), transparent 46%), #090d16;
  color: #f1f5f9;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.brain-auth-card {
  width: min(100%, 440px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(15, 20, 34, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.brain-auth-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: rgba(56, 189, 248, .14);
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: .04em;
}

.brain-auth-language {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #cbd5e1;
  font-size: 13px;
}

.brain-auth-language select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #0c101c;
  color: #f1f5f9;
  font: inherit;
}

.brain-auth-eyebrow {
  margin: 24px 0 8px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.brain-auth-card h1 {
  margin: 0;
  font-size: 26px;
}

.brain-auth-description,
.brain-auth-hint {
  color: #94a3b8;
  line-height: 1.6;
}

.brain-auth-description { margin: 10px 0 24px; }
.brain-auth-hint { margin: 8px 0 0; font-size: 12px; }
.brain-auth-hint code { color: #cbd5e1; }

#brain-auth-form label {
  display: block;
  margin: 17px 0 7px;
  color: #cbd5e1;
  font-size: 13px;
}

#brain-auth-form input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  outline: none;
  background: #0c101c;
  color: #f1f5f9;
  font: inherit;
}

#brain-auth-form input:focus { border-color: #38bdf8; }
#brain-auth-form button,
#brain-auth-retry {
  width: 100%;
  margin-top: 24px;
  padding: 12px 16px;
  border: 0;
  border-radius: 9px;
  background: #38bdf8;
  color: #07111c;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

#brain-auth-form button:disabled { cursor: wait; opacity: .65; }
.brain-auth-error { color: #fb7185; font-size: 13px; }
