/* auth-gate.css — Be standard auth gate styling
 *
 * Dark theme. Tron blue accent. No frameworks.
 * Drop this into any Be project's wwwroot.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #111111;
  color: #ccc;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Auth Gate Overlay ── */

#auth-gate {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#auth-gate.hidden {
  display: none;
}

#auth-gate-inner {
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

#auth-title {
  color: #6FC3DF;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}

/* ── Form Elements ── */

#auth-form, #auth-qr-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#auth-form input, #auth-qr-view input {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ddd;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}

#auth-form input:focus, #auth-qr-view input:focus {
  border-color: #6FC3DF;
}

#auth-form input::placeholder, #auth-qr-view input::placeholder {
  color: #555;
}

/* ── Buttons ── */

#auth-login-btn, #auth-qr-verify-btn {
  background: #6FC3DF;
  border: none;
  border-radius: 6px;
  color: #111;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px;
  transition: background 0.2s;
}

#auth-login-btn:hover, #auth-qr-verify-btn:hover {
  background: #8fd4ec;
}

#auth-login-btn:disabled, #auth-qr-verify-btn:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

#auth-register-btn {
  background: transparent;
  border: 1px solid #444;
  border-radius: 6px;
  color: #6FC3DF;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px;
  transition: border-color 0.2s;
}

#auth-register-btn:hover {
  border-color: #6FC3DF;
}

#auth-register-btn:disabled {
  color: #555;
  border-color: #333;
  cursor: not-allowed;
}

/* ── Divider ── */

#auth-divider {
  color: #555;
  font-size: 0.8rem;
  margin: 4px 0;
}

/* ── Error messages ── */

#auth-error, #auth-qr-error {
  color: #df6f6f;
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* ── QR View ── */

.hidden {
  display: none !important;
}

#auth-qr-canvas {
  margin: 0 auto 12px;
  border: 4px solid #333;
  border-radius: 8px;
  background: #fff;
}

#auth-qr-label {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ── Responsive ── */

@media (max-width: 420px) {
  #auth-gate-inner {
    margin: 16px;
    padding: 28px 20px;
  }
}
